aboutsummaryrefslogtreecommitdiff
path: root/ansible
AgeCommit message (Collapse)AuthorFilesLines
2015-12-22pep8 the ansible modulesSamYaple2-32/+41
By ignoring the appropriate tests that pep8 does we can properly run *most* of the pep8 tests on all of our modules allowing for a more consistent coding style. Closes-Bug: #1528431 Change-Id: I33f27a250d06d4f044267aa3ad189e092789b8df
2015-12-22Simplify config creationSamYaple37-1312/+744
Convert config creation from a playbook to an action_plugin. This reduces the complexity and confusion while retaining the same augment structure and flexibility. This allows us to remove the 0-byte files as requirements. They will still be used if they are present (this means we require additional documentation around them). DocImpact Closes-Bug: #1528430 Change-Id: I2c789f6be9f195c7771ca093a6d59499564b4740
2015-12-21Merge "Fix retrieving api_interface"Jenkins13-33/+37
2015-12-16Fix retrieving api_interfaceOTSUKA, Yuanying13-33/+37
In heterogeneous environment, api_interfaces are different each other. So we should specify it from hostvars. Implements: bp configure-network-interface Change-Id: Id15d70bfb9ebb62a64a3847a6b77407efb171dbe
2015-12-15Move the admin account creation to register.ymlJeffrey Zhang4-0/+46
Create the admin project, user, role and keystone service info by using ansible task rather than shell script Closes-Bug: #1526251 Change-Id: Ieee215b9de1618b3d31f3d1a766a9d0ebafdee4d
2015-12-11Record version on container buildMichal Jastrzebski1-1/+1
This changes default behaviour of build.py to instad of putting latest tag on it, it puts current kolla version as found in setup.cfg Change-Id: I4d6e9a0159c6a5598abd58072594df4204427308 Partially-Implements: blueprint upgrade-nova Partially-Implements: blueprint record-version
2015-12-11Change nova-compute upgrade level to autoMichal Jastrzebski1-0/+3
As part of upgrade process we need new services to detect what is the oldest version running on compute nodes. Change-Id: Id65f2bc765828054bf5d5562de27255031254821 Partially-Implements: blueprint upgrade-nova
2015-12-10Allow murano on a dedicated node in a HA setupPaul Bourke1-0/+1
Without this the haproxy role doesn't have the facts it needs to render it's template, resulting in the following error: TASK: [haproxy | Copying over config(s)] ************************************** fatal: [control01] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_eno1'", 'failed': True} This is similar to the fix applied previously for other services in I99b7dbebd5a6193e192ee258ddf576d18db90ed7. Change-Id: Idb7fa8763cff64ad761c5b8a1a3bf92a27f4f501 Closes-Bug: 1524738
2015-12-10Allow heat on a dedicated node in a HA setupPaul Bourke1-0/+1
Without this the haproxy role doesn't have the facts it needs to render it's template, resulting in the following error: TASK: [haproxy | Copying over config(s)] ************************************** fatal: [control01] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_eno1'", 'failed': True} This is similar to the fix applied previously for other services in I99b7dbebd5a6193e192ee258ddf576d18db90ed7. Change-Id: I279374e8861c02e3aa12988b885be7361e0cf2f5 Closes-Bug: 1524739
2015-12-03configure ovs bridge in openvswitch-db containerSean Mooney1-7/+7
- this change moves the ovs_ensure_configured.sh file to the openvswitch-db container. - this change reorders the plays in ansible/roles/neutron/tasks/start.yml to configure the ovs bridges before starting the vswitchd container. Change-Id: Ied1a82d48377534c15680406df9a96caf3b79515 Closes-Bug: #1522133
2015-12-02Sanity check for glanceMichal Jastrzebski4-1/+26
This runs first sanity check for glance. After glance is deployed it checks images.list(). Also consist few fixes for previous patches Change-Id: I03d05d246302d8411b2e94c94ca7fe046c00d735 Partially-Implements: blueprint sanity-check-container
2015-12-02Sanity check for keystoneMichal Jastrzebski4-0/+27
This runs first sanity check for keystone. After keystone is deployed it checks tenants.list() Change-Id: Ie919ffe6124eb70428309404a434d9b0eb0b9f70 Partially-Implements: blueprint sanity-check-container
2015-11-27Source installation in virtualenvMichal Rostecki43-46/+48
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
2015-11-26Merge "Share tftpboot directory for ironic-conductor and pxe"Jenkins1-19/+23
2015-11-26Merge "Fix configuration for ironic-conductor"Jenkins1-0/+6
2015-11-26Share tftpboot directory for ironic-conductor and pxeAndrey Shestakov1-19/+23
Node configs and images placed by ironic-conductor should be available from tftp server. /tftpboot directory should be shared between ironic-pxe and ironic-conductor containers. Closes-bug: #1520293 Change-Id: Iee6a73534ac38c4386a53b82fd3c567b8a971beb
2015-11-26Merge "Fix neutron ml2 configuration for Ironic"Jenkins1-2/+5
2015-11-26Merge "Add OVS-data container"Jenkins2-0/+22
2015-11-26Merge "Remove the two different auth profiles"Jenkins3-44/+4
2015-11-26Fix configuration for ironic-conductorAndrey Shestakov1-0/+6
Ironic API url provided for conductor. Disabled cleaning by default. TrivialFix Change-Id: I36bd728e1ec672b42c4844ef6b3c9dc603a6db6b
2015-11-26Fix neutron ml2 configuration for IronicAndrey Shestakov1-2/+5
vxlan should be allowed in tenant_network_types because it used in tunnel_types. Allow all flat networks when ironic enabled. TrivialFix Change-Id: I39b2fbf26bb4c9047e7c3ea5ca7749ae113e4ed8
2015-11-26Fix minor typos in ansibleSwapnil Kulkarni (coolsvap)5-6/+6
Change-Id: Iaac33c100027beef78f6a831a5081a9d3d5cc192 Closes-Bug:#1520070
2015-11-25Add OVS-data containerRyan Hallisey2-0/+22
Change-Id: I488b386ef6864f88b7693cf028626330f5414638 Implements: blueprint ovsdb-data
2015-11-24Merge "Fix udev cinder issue"Jenkins1-0/+2
2015-11-24Merge "Create openrc file on the deploy node"Jenkins2-0/+17
2015-11-24Merge "Fix incorrect ansible variable"Jenkins2-2/+2
2015-11-24Merge "Make the database json variable more readable"Jenkins10-54/+99
2015-11-24Merge "Fix bootstrap for services"Jenkins18-90/+82
2015-11-23Merge "Switch find_disks to use a decent python lib"Jenkins5-121/+52
2015-11-23Create openrc file on the deploy nodeHui Kang2-0/+17
This task is run as a post-deploy playbook Implements: blueprint ansible-task-generate-openrc Change-Id: I69f4ee895094da5c73494a41dccb2e86eb481656
2015-11-23Fix incorrect ansible variableSam Yaple2-2/+2
Change-Id: Ic6755dfe5c3741e4a945c8353f643bbf1479c172 Closes-Bug: #1519040
2015-11-23Make the database json variable more readableSam Yaple10-54/+99
Additionally remove tty from the container cleanup docker section. It was added in a sed in a previous patchset by serves no purpose. Change-Id: Ib617870616bca687f72ffaa44b2e9a3a11ef1011 Partially-Implements: blueprint cleanup-playbooks
2015-11-23Fix bootstrap for servicesHui Kang18-90/+82
The bootstrap tasks could be started on any node listed in the site.yml The issue is that all the tasks must run on the same node, and the only node that all the tasks can run on is the 'api' node due to needing to start the bootstrap container which binds in the configs. delegate_to is required to ensure that the proper node gets the task. Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Ica04ab366777a571a92212ac22c482f1881d4ecd Closes-Bug: #1513598 Related-Bug: #1513439
2015-11-20Remove the two different auth profilesSam Yaple3-44/+4
Ceph can function just fine generating the keys before the pools have been created so we can apply the proper permissions to the auth string ahead of time. This allows us to not require additional steps to add a cache tier on the fly in the future. Change-Id: I8214c567fb7c337f95d908c5699d1da922bfa1a6 Closes-Bug: #1518475
2015-11-20Switch find_disks to use a decent python libSam Yaple5-121/+52
Now /dev/loop devices will work! Change-Id: Icb8efe4f9bc3a21a72eb04bfd03452c26f13fd70 Closes-Bug: #1518438
2015-11-20Fix udev cinder issueSam Yaple1-0/+2
/run/udev contains the udev information needed for the lvm tools /run and /dev must be bound in for this to work properly Change-Id: Icfe07c4ce3673310cc24591b42c107c9710cd3ac Closes-Bug: #1518454 Closes-Bug: #1487780 Related-Bug: #1487807
2015-11-20Only start nova-data on the compute hostsSam Yaple1-0/+1
Change-Id: Icd7aa39556c50a3367c3b9630b24b7195612ba70 Closes-Bug: #1517914
2015-11-20Merge "Fix ironic-api listen address"Jenkins1-0/+5
2015-11-20Merge "Ensure config directory exists for container ironic-pxe"Jenkins1-0/+6
2015-11-20Fix ironic-api listen addressAndrey Shestakov1-0/+5
Set host_ip to internal address for ironic-api service Change-Id: I001a422a0474e88c1433a7b3ab5e005f2b8c337c Closes-Bug: #1518336
2015-11-20Merge "Move data container to start.yml"Jenkins4-36/+34
2015-11-20Ensure config directory exists for container ironic-pxeAndrey Shestakov1-0/+6
Config directory for ironic-pxe should be created before copying files into it Change-Id: I5ad8e44273c3d185cf7fbe94787aff47595aabb0 Closes-Bug: #1518330
2015-11-17Fixed log error messages from keystone to syslog.akwasniewska2-1/+4
Rsyslog adapted to filter keystone error log messages. Related bug: 1516462 Change-Id: I4d8d4280dc8fef870d56d8466ed466241ee18e64
2015-11-17Merge "Fix keystone settings for Magnum"Jenkins1-2/+2
2015-11-17Fix keystone settings for MagnumPaul Bourke1-2/+2
It currently has auth_url typoed which results in auth_url being specified twice Change-Id: Ia5b6385f8d28a23fc05908ceec75a7e8528894d9 Closes-Bug: #1517141
2015-11-17Fix issues in Glance filesystem backendPaul Bourke1-2/+2
The drop root change for Glance highlighted the fact that we were binding volumes from glance_data into the wrong container - it was glance_registry whereas it should be glance_api. This would result in all images being lost if the glance_api container happens to restart. Also, we need a sudoers file to chown the file backend dir to the glance user. Change-Id: If04337045bb94b3126e48d1f5bf0ea29e20373ae Closes-Bug: #1516729
2015-11-14drop root on memcachedBritt Houser1-2/+1
This patch add the USER directive to the memcached container. It also removes the -u from the command line to launch memcached, since it will already be run as that use. Change-Id: I87d782a424df99fe1b5694debafa3c0c4a9aba27 Partially-Implements: blueprint drop-root
2015-11-13Merge "Add Ansible support for Magnum"Jenkins16-0/+355
2015-11-13Merge "Add playbook for hosts pre-deployment checks (ports, files)"Jenkins6-0/+440
2015-11-13Add playbook for hosts pre-deployment checks (ports, files)Vladislav Belogrudov6-0/+440
This playbook runs on hosts before deployment to be sure we don't have any conflicting services running and systems are in expected state. DocImpact Change-Id: If5f288b7fbdf269697ca834da4eb969b61683ca0 Partially-implements: blueprint precheck-tasks