Commit Graph

86 Commits

Author SHA1 Message Date
Bogdan Dobrelya 542a359af2 Add vbox/qemu packer build for centos7
Rename the cloud_archive task to uca/rdo tasks for ubuntu/centos
Rename the worker_upstrart task to the worker
Rework the OSTYPE env var to "when: ansible_os_family"

TODO
* PXE (PREPROVISIONED=false) to be working for centos as well
* pygraphviz for centos7, see also https://bugs.launchpad.net/fuel/+bug/1510884
* fix ubuntu only compatible examples, for example riak cluster deploy

Closes-bug: 1553988

Change-Id: Iab130c3c79b3db99deb14ea50572c073532f4694
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-16 11:41:15 +01:00
Bogdan Dobrelya 4575b7b2f7 Separate vagrantfile for the docker provider
Change-Id: I828751cb631930099770c301b0ec2df802fcbf52
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-02 13:37:19 +01:00
Bogdan Dobrelya 467d84c620 Add centos7 docker support
* Separate OSTYPE specific tasks/files.
* Keep only common tasks and files in the
playbooks dir.

TODO pxe case to be working for centos as well
note, the cmtools.sh installs ansible 2.0.1.0
  in centos7, while we have 2.0.0.2 for ubuntu trusty
note, the base.yaml installs python-keystoneclient
  1:1.3.0-1.el7 from kilo-2 (no juno for centos7),
  while for ubuntu we have one from juno
note, there is no pygraphviz for centos7, see also
  https://bugs.launchpad.net/fuel/+bug/1510884

Closes-bug: #1548851

Change-Id: Icec5637f9242104322d1104725f9f132d1ca16f0
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-02 11:16:23 +01:00
Bogdan Dobrelya e1e304c4f9 Add packer build for docker container
* Add docker Ubuntu Trusty packer template.
* Rework cmtools to install ansible and puppet
* Add support for Vagrant provider docker.
* Containers will share the host system docker daemon
  and images in the storage, so may be run nested.
* Ensure the rsyslogd and sshd is running in containers.
* Also ensure the /var/log/solar dir, which is required for docker.
* W/a Solar-hardcoded and vbox specific ssh key paths
  for docker case.
* Update FAQ and docs

Depends-on: I881d362968a10d816cbd368cb185900dfaa0b3bc
Partial-bug: #1547587

Note, vagrant does not support vm.network and exec based
provisioning for docker, so there are workarounds.

Change-Id: Idf91bd6ed2fb90601f517064705df7721aeae3fb
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-02 11:16:23 +01:00
Bogdan Dobrelya 3a0d52d9eb Fix dirs sync rsync type for Vagrantfile
Change-Id: I57baec274fa58616f76dd8071a207daa2b9b5ef6
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-02-18 11:51:41 +01:00
Jedrzej Nowak e7d7be55bd PG support in Vagrant and in test env
Changes included:
- non standard docker image (alpine-postgres)
- new setting in vagrant-settings.yaml_defaults (solar_db_backend)
- multidb logic in playbooks (databases.yaml)
- possibility to set backend by SOLAR_DB_BACKEND in jenkins run.sh
- packer images version 0.3.0.pre0 (pre builded docker image)

Change-Id: Id48236aa778597ed787f8455ec4d4c869d0ef1cf
Closes-bug: #1546205
2016-02-16 17:53:32 +01:00
Jedrzej Nowak e4cb8ad0c7 Fix incorrect version handling in Vagrantfile
Bumped version to 0.2.1

Change-Id: I17a8e786f9b1ec61de084bff6abe4bd9a4ee173e
2016-02-12 20:39:22 +01:00
Maciej Kwiek 6100be9f1d Fix Vagrant version requirement in docs.
Was: 1.7.x
Is: 1.7.4 or higher

Change-Id: I9ec564f400c93c441421991e5b1410eee1bbf740
Closes-bug: 1544047
2016-02-10 14:15:40 +01:00
Łukasz Oleś aea48b733e Remove ansible.cfg, we use .ssh/config now
Change-Id: I257bd0c7050516746ff77b8ef09dc169b945deae
2016-01-18 18:44:54 +01:00
Łukasz Oleś b4975246f7 Move bootstrap commands to ansible playbook
It will be easier to configure image outside of Vagrant env.

Change-Id: Icf0427a774afe5e6ee084e06219074a6e9d79abf
2015-12-31 15:58:46 +01:00
Łukasz Oleś a0f76c9bc9 Do not run docker-compose on slaves 2015-11-24 12:03:48 +01:00
Łukasz Oleś 8e6519795e custom-configs.yaml is deleted now 2015-11-24 11:56:05 +01:00
Łukasz Oleś 2241de1eb4 Use docker compose to run riak, redis and celery 2015-11-23 22:35:25 +01:00
Łukasz Oleś 96dff2cb0c Merge branch 'master' into librarian 2015-10-21 14:41:58 +02:00
Łukasz Oleś 9075d2bd60 Always use virtio 2015-10-21 14:39:09 +02:00
Jędrzej Nowak 6e40b6550d Merge pull request #254 from loles/librarian
Move to Librarian
2015-10-20 18:21:16 +02:00
Łukasz Oleś 8c1dc6623a Merge branch 'master' into librarian
Conflicts:
	examples/openstack/openstack.py
2015-10-20 13:24:58 +02:00
Sebastian Kalinowski c029035ea9 Force mac address updates for slaves
When using VirtualBox as a provider, "slaves" had the same MAC as first network adapter in "master",
which was causing issues with networking. Now MAC will be randomly created.
2015-10-20 12:24:21 +02:00
Łukasz Oleś 5235c36803 Make sure to use virtio bus when using libvirt 2015-10-19 23:29:24 +02:00
Bogdan Dobrelya b4eb13fda3 Make multiple networks only when PREPROVISIONED
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 12:09:53 +02:00
Bogdan Dobrelya 4340bd2e93 Remove the default route hack
This is not required as a multiple default routes
seem not working as expected, hence
removing the hack.
The default route via eth0 should be just preserved
as is.

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 12:00:25 +02:00
Bogdan Dobrelya 962baeea5b Add default route with metric 1 for vbox
This is required for the SDN resource
to not owerwrite default route provided
for the eth0 NAT interface, by vbox design.

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 11:52:49 +02:00
Bogdan Dobrelya 94eee0e08e Fix dev nodes naming indexes
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 11:51:30 +02:00
Bogdan Dobrelya 14f04937a5 Fix libvirt integration for multi-nets
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 11:51:30 +02:00
Bogdan Dobrelya 41a15eff09 Del junk puts command
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 11:51:13 +02:00
Bogdan Dobrelya b5f999c1ce Parametrize networks, box and provider
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 11:50:52 +02:00
Bogdan Dobrelya a3db59cdb8 Adjust parameters for vagrantfile YAML
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-10-13 11:49:43 +02:00
Evgeniy L 39170b3b1b Make vagrant silently run pxe nodes, without checks 2015-10-12 19:26:41 +03:00
Evgeniy L 5da5f18760 Add option to boot slave using pxe into bootstrap image
This functionality is required in order to perform
partitioning/provisioning.
2015-10-09 21:02:38 +03:00
Jędrzej Nowak 0bf8864775 paravirt from config for master 2015-09-21 08:25:59 +02:00
Jedrzej Nowak a563998a1b Paravirt provider is customizable from vagrant-settings.yaml 2015-09-17 15:47:35 +02:00
Jedrzej Nowak 70171f3ff9 Check minimal Vagrant version in Vagrantfile 2015-09-17 15:32:18 +02:00
Łukasz Oleś 47a6b8e163 Merge branch 'master' into speed_libvirt
Conflicts:
	vagrant-settings.yaml_defaults
2015-09-17 11:35:26 +02:00
Łukasz Oleś f2def8b81d Add option set number of CPUs 2015-09-17 11:14:00 +02:00
Łukasz Oleś 5823b3a1c5 Speed improvements for libvirt 2015-09-16 19:30:02 +02:00
Przemyslaw Kaminski c652ded6f0 Add slaves/master images to vagrant-settings.yaml
Modified README for bootstrap
2015-09-16 16:52:40 +02:00
Łukasz Oleś f7876a0ee6 Remove unused forwarded port 2015-09-16 11:56:11 +02:00
Łukasz Oleś 3c49612039 Add spaces 2015-09-16 06:26:14 +00:00
Łukasz Oleś c5ea07e580 Add option to choose sync_type 2015-09-16 06:25:56 +00:00
Dmitry Shulyak c3278c7cf2 Merge pull request #145 from loles/libvirt
Libvirt support
2015-09-15 17:13:32 +03:00
CGenie 47adbe2bf4 Merge pull request #147 from Mirantis/yml_to_yaml
yml to yaml
2015-09-15 13:56:35 +02:00
Jedrzej Nowak ecfb5b10e2 changed all yml occurrences to yaml 2015-09-15 12:24:34 +02:00
Łukasz Oleś 1c2130d84f Libvirt support 2015-09-14 18:31:07 +02:00
Przemyslaw Kaminski 196181f3fe Merge branch 'master' into cgenie/graph-db 2015-09-10 11:05:38 +02:00
Przemyslaw Kaminski 1270d4d309 Add missing licenses 2015-09-10 08:21:08 +02:00
Przemyslaw Kaminski 5b639cf867 Merge branch 'master' into cgenie/graph-db 2015-09-07 12:07:50 +02:00
Przemyslaw Kaminski 43e97107d7 Fix ansible.cfg file sync in Vagrantfile 2015-09-03 15:32:43 +02:00
Jedrzej Nowak a8df3c405d Added better logic when reading defaults in Vagrantfile 2015-09-02 10:13:35 +02:00
Jedrzej Nowak d56b179f01 Added possibility to ajdust Vagrantfile settings from yml file 2015-09-02 09:56:21 +02:00
Przemyslaw Kaminski 38640ffc13 Vagrantfile: typo fix 2015-09-01 10:07:36 +02:00