summaryrefslogtreecommitdiffstats
path: root/prototypes
AgeCommit message (Collapse)AuthorFilesLines
2016-10-05Convert harcoded values to hiera onesYolanda Robla Mota2-6/+9
Settings like neutron config and virt type will be different depending on environments. Change-Id: I0945025645b40a02f9a13d0699f442d3a949ebb4 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-04Fix naming and ips for controller and computeYolanda Robla Mota1-8/+8
hostname needs to match manifest, and ips need to match the provided range. Change-Id: I059ed9df273f984ac032bd9ded2892e8758c6dab Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-04Merge "bifrost: Serialize localhost actions during final host deployment"Fatih Degirmenci1-3/+8
2016-10-03Merge "Add missing bridge_name parameter"Fatih Degirmenci1-0/+1
2016-10-03Add missing dhcp_static_mask valueYolanda Robla Mota2-0/+2
Change-Id: I1ba1aeea6a9a5a97b592e484b205868811b9f4e9 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-03Add missing bridge_name parameterYolanda Robla Mota1-0/+1
Change-Id: If233efe79fd3058c4ca4ef16abf7f66b1a9c4203 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-10-03bifrost: Serialize localhost actions during final host deploymentMarkos Chandras1-3/+8
Several tasks in the final playbooks run locally and there is a chance to encounter race conditions when multiple tasks run in parallel and all access or modify the same local files. We fix this by splitting the final steps into multiple plays and serializing those that run locally. Change-Id: I38c3465d9c4714d9db772f9ff9e32ec1d4a91db8 Signed-off-by: Markos Chandras <mchandras@suse.de>
2016-10-03Add missing hiera vars for bifrostYolanda Robla Mota2-3/+87
Change-Id: I88a9acb221c7c33d12c8d68492551c39a8cb212c Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-30Set the wait_timeout variable to the deployment scriptMarkos Chandras2-5/+3
There is no point in us keeping our own copy of the upstream bifrost-prepare-for-test-dynamic playbook just for overriding the wait_timeout variable. Delete the duplicate role and move the variable definition to the deployment script instead. Change-Id: Ib8066fefe80e9a3190d878eb5dba7b8d86a85e07 Signed-off-by: Markos Chandras <mchandras@suse.de>
2016-09-27bifrost: Refactor bifrost jobsFatih Degirmenci1-2/+3
This change - Creates job templates to verify opnfv/bifrost patches - Introduces type in order to prepare verification on baremetal - Fixes git cloning so the job shows changes for the corresponding project - Gets rid of unnecessary slave parameters from slave-params.yml - Fixes build blocking - Updates the bifrost-verify.sh script and includes in shell so we don't have to clone releng repo separately - Updates destroy-env.sh to create /httpboot and /tftpboot with permissions 755 - Removes daily infra-bifrost job and scripts as we don't use them at the moment Change-Id: Icb5a543628d3321bfe4e549ab92c67443ac578d8 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-09-23bifrost: Get rid of httpboot and tftpboot directoriesFatih Degirmenci1-2/+2
Change-Id: If2af5177e8614651664c7de9cde3e681ec2bb43c Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-09-20Stop using sudoers on all servers definedYolanda Robla Mota2-1/+4
Insteaf of that, add only on compute and controller that are going to be fully automated, but avoid running that on jumphosts, as this may mess with exiting config. Change-Id: I79f1fa05d3e6da49a7f78b2efecb791022f5b11d Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-16Add baremetal node for puppet-infracloudYolanda Robla Mota2-0/+29
Change-Id: Ie18b25634016dcc98ec83e30c51b4c386ffd9ecc Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-14prototypes: bifrost: README: Run the deployment script using sudoMarkos Chandras1-1/+1
It's necessary to run the deployment script using 'sudo' so that exported variables within the script are preserved in playbooks once we gain elevated privileges. Change-Id: I824b44199d57b6acf14804c3ab1825d7aa80da4e Signed-off-by: Markos Chandras <mchandras@suse.de>
2016-09-14prototypes: bifrost: Check we are running the destroy-env.sh as rootMarkos Chandras2-6/+14
Nearly all operations in the destroy-env.sh script need to be executed as root so make sure that's the case before we try to do anything. This also fixes the dnsmasq.leases path and we check that the file exists before we try to wipe it. The dnsmasq is also restarted to take the empty leases file into consideration. Finally, we improve the documentation to run the necessary commands using sudo. Change-Id: I56df821ca8a93307117a94a11abd0867b27d8443 Signed-off-by: Markos Chandras <mchandras@suse.de>
2016-09-12Change naming for bridge in CentOSYolanda Robla Mota1-1/+1
Change-Id: I7a35a1222ce7524fbf74848daec68dfd57616026 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-12Merge "Stop disabling selinux"Fatih Degirmenci2-16/+0
2016-09-12Merge "Update documentation about disabling selinux"Fatih Degirmenci1-4/+6
2016-09-12Merge "Parameterize infracloud playbook by platforms"Fatih Degirmenci2-2/+22
2016-09-12Parameterize infracloud playbook by platformsYolanda Robla Mota2-2/+22
This will allow to run on different distros depending on settings exported. Change-Id: I068d7bb2eebfd009dceeff057c8a65361483788b Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
2016-09-09Stop disabling selinuxYolanda Robla Mota2-16/+0
It is already disabled in origin in puppet-infracloud, and it is causing an error with duplicates now. Change-Id: Ie40232c03138f1c8a1516895828c6cfd5730f9f7 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-08Update documentation about disabling selinuxYolanda Robla Mota1-4/+6
Change-Id: Ic3729d9450edabd809eed53525632e2b36752401 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-08Fix script when CLEAN_DIB_IMAGES var is not setYolanda Robla Mota1-0/+2
It relies on this var being exported, and if the script is ran manually and this var is not set, it crashes. Adding a default to this var to avoid this failure. Change-Id: I5c61a1d9f1aafe2d6c64af70d3237b6c5b0d1e1d Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-09-07Fix problems and add missing info to puppet-infracloud instructionsFatih Degirmenci1-5/+14
The instructions in README file will be automated later on so they are just documented for the timebeing in order to prevent others from facing issues while they try to follow the steps. Change-Id: I38fe2609da6389a1cd120075f8eea243edd28e58 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-09-02Reflect upstream change to local script fixing playbook syntax checkFatih Degirmenci1-11/+11
Upstream change: https://review.openstack.org/#/c/358477/ Change-Id: Ibfef32aec4b62d8d1d13728abec374a2d4560d81 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-09-01infra: Fix small doc/script issues and enable mail notificationFatih Degirmenci3-6/+10
This change - Fixes readme of puppet-infracloud - renames destroy_env.sh script - enables mail notification - disables removal of DIB images by default Change-Id: I628b26b976e38772cbbc69b737a545fe801639ba Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-09-01Merge "Disable selinux on RHEL case"Fatih Degirmenci2-0/+16
2016-09-01Merge "Add jumphost to the managed servers"Fatih Degirmenci1-0/+7
2016-09-01Disable selinux on RHEL caseYolanda Robla Mota2-0/+16
This is causing several puppet moduels to fail (for example rabbit not starting). Set that to permissive as a workaround, but with the intention of fixing the configuration and enabling selinux on next steps. Signed-Off-By: Yolanda Robla <yroblamo@redhat.com> Change-Id: I34b388792699a9563dacedf87dd6ff85e482e431
2016-09-01Add jumphost to the managed serversYolanda Robla Mota1-0/+7
So at least it gets the dns, ports, and extra config setup. Signed-off-by: Yolanda Robla <yroblamo@redhat.com> Change-Id: Iceb075b7491a9098b10a40b0a549023129739883
2016-09-01Set bridge name in hieraYolanda Robla Mota2-2/+5
It is different from debian/centos, and will be different in baremetal as well, where vlans will be used. Add the ability to manage in hiera, so it can just be edited on the yaml file directly. Change-Id: I5f5ac3adec6606ca34b3c8ad86c99d8e3aee52d1 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-08-31Create daily job for infra deployment, remove sandbox jobs and fix bugsFatih Degirmenci2-2/+2
This change - creates upstream daily job to trigger and control the execution of jobs that provision nodes using bifrost, deployment using puppet-infracloud, and simple smoke test job. - fixes the hashbang placement in 2 of the scripts. - removes sandbox dummy jobs as the infra jobs can serve as examples now. Only the node provisioning job is functional at the moment. Change-Id: I311d159956d8b7ce3f7a500fac5a7dcb459104cf Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-08-23Add initial puppet and hiera filesYolanda Robla Mota9-0/+736
Include the basic site.pp and initial modules, as long as default hieras, to manage opnfv infracloud. Change-Id: I891bc414b102257534f1d28df8299bf41c12e8f2 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-08-23Add missing curl package for infracloudYolanda Robla Mota1-1/+1
It is needed on rabbit install Change-Id: I0ebf66883cc7c66771b3b5b4c2cccc590e61e5ca Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
2016-08-22Increase the disk in the infracloud vmsYolanda Robla Mota1-0/+1
The 10g disk space is not enough to spin up some vms and test. With default flavors, just a m1.small needs 20g of disk. Increasing to 100g of disk in each vm, so we can test with better conditions. Change-Id: I7b273dc5881cb6af67b7852c1318ea739217602f Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
2016-08-19Merge "Adjust bifrost node provisioning timeout and fix file permissions"Fatih Degirmenci4-0/+4
2016-08-19Increase the number of vcpus in testingYolanda Robla Mota1-0/+1
It defaults to 1 cpu, and that means that computes won't be able to spin up any node because the number of cpus are exhausted. Currently the playbook doesn't allow to individually set cpus, so defaulting everything to 4 temporarily. Change-Id: Ic6058b28f5d75a270e3897157ba034f804af8ab0 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
2016-08-19Adjust bifrost node provisioning timeout and fix file permissionsFatih Degirmenci4-0/+4
This change - increases the node provisioning timeout to 1900 seconds since the original timeout used by upstream bifrost (900 seconds) is not suited for provisioning VMs with Ubuntu. - fixes permissions of the scripts. - removes .gitkeep. This change is not upstreamed since bifrost uses cirros for test & development purposes and it is probably not in their interest to have increased timeout. Change-Id: I4b59a321fa26f8b5895ec577a19d10f5cdcace0f Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2016-08-18Add initial playbooks and scripts for bifrost POCSYolanda Robla Mota4-0/+271
Change-Id: Ic7e33f53d0111b0e833d7547fff16458506b063b Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
2016-08-12Add directories for openstack-infra prototypingFatih Degirmenci2-0/+0
Change-Id: I890d36d0db54efcbcb9911707b72bf58416550b3 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>