Guillaume Coré
2019-11-27 d84223ff182118ca0d94046651eb0f0f14e85135
refs
author Guillaume Coré <guillaume.core@gmail.com>
Wednesday, November 27, 2019 23:56 +0100
committer Guillaume Coré <gucore@redhat.com>
Wednesday, November 27, 2019 23:59 +0100
commitd84223ff182118ca0d94046651eb0f0f14e85135
tree 16ac57f6bc5505c961845f59a152427eea520f12 tree | zip | gz
parent 45192886fb84aeea525d1a3330074f6bfcd0f91f view | diff
OSP cloud provider refine (#865)

* Update agnosticd-openstack docker image

- add keystone client
- add neutron client

* Make three-tier-app config work on OSP cloud-provider

* add lifecycle default tasks for OSP cloud-provider

* Push missing heat templates

* Do not use 'Project' metadata but guid and env_type instead

* use openstack cli instead of nova

* fixes #866

* Make ocp-clientvm work with OSP cloud-provider

- create sample_vars_osp.yml
- create osp_default_vars.yml in the cloud_provider directory
- create infra-osp-dns role for creation and deletion
Will create entries for every instances that has 'public_dns: true'
- cleanup infrastructure playbooks, move tasks into roles
- update ocp-clientvm version to 3.11.154
- fix create-inventory: bastion should not be hardcoded because it can be named
differently (clientvm here)

* osp: fix instance names (no underscore)

- fix dns too
- fix quota for Floating IPs
- don't update all packages

* ocp4-disconnected-osp-lab: Always add guid and env_type metadata

* fix trailing spaces

* Fix password generation: s/openssl/password

* Remove Mosh from the default security groups (OSP)

* don't delete project and resources if osp_create_project is false

* fix typo

* Make deletion idem-potent: don't fail is project is already deleted

- rename files, don't prefix with 'delete' since it's a destroy role
- separate heat and project
- use include_tasks (dynamic) so output is clean

* Delete heat after project resources, delete project last

* use variable osp_project_name

* Cleanup include_vars output

* Fix keystone error

* Fix deletion of volumes

* introduce new docker_size variable and reduce size in the sample_osp

* Support the multiple volumes from the instances dictionary

* fix typo, add more volumes to ocp-clientvm

* ocpclientvm needs at least 30G

* make Heat template flat, use only jinja2, no nested templates

* in sshd set UseDNS = no

* Wait a little before deleting volumes

* fix typo

* Fix typo

* add RHELAMI OCPworkshop ami for eu-west-2

* fix ocp-workshop deprecated syntax

* update user in three-tier-app

* add todo

* Push untracked file

Co-authored-by: Nate Stephany <nstephan@redhat.com>
Co-authored-by: Nate Stephany <nate@redhat.com>
18 files added
22 files modified
1 files renamed
1433 ■■■■ changed files
ansible/cloud_providers/osp_default_vars.yml 19 ●●●●● diff | view | raw | blame | history
ansible/cloud_providers/osp_destroy_env.yml 8 ●●●● diff | view | raw | blame | history
ansible/cloud_providers/osp_infrastructure_deployment.yml 84 ●●●● diff | view | raw | blame | history
ansible/configs/ocp-clientvm/destroy_env.yml 2 ●●● diff | view | raw | blame | history
ansible/configs/ocp-clientvm/env_vars.yml 40 ●●●●● diff | view | raw | blame | history
ansible/configs/ocp-clientvm/sample_vars_osp.yml 47 ●●●●● diff | view | raw | blame | history
ansible/configs/ocp-workshop/files/cloud_providers/ec2_cloud_template.j2 4 ●●● diff | view | raw | blame | history
ansible/configs/ocp-workshop/post_software.yml 15 ●●●● diff | view | raw | blame | history
ansible/configs/ocp4-disconnected-osp-lab/env_vars.yml 24 ●●●● diff | view | raw | blame | history
ansible/configs/ocp4-disconnected-osp-lab/files/cloud_providers/osp_cloud_template_master.j2 6 ●●●●● diff | view | raw | blame | history
ansible/configs/ocp4-disconnected-osp-lab/sample_vars.yml 8 ●●●●● diff | view | raw | blame | history
ansible/configs/three-tier-app/env_vars.yml 60 ●●●●● diff | view | raw | blame | history
ansible/configs/three-tier-app/sample_vars_osp.yml 52 ●●●●● diff | view | raw | blame | history
ansible/include_vars.yml 3 ●●●● diff | view | raw | blame | history
ansible/lifecycle.yml 76 ●●●●● diff | view | raw | blame | history
ansible/roles/bastion-student-user/tasks/main.yml 4 ●●●● diff | view | raw | blame | history
ansible/roles/bastion/tasks/main.yml 14 ●●●● diff | view | raw | blame | history
ansible/roles/common/handlers/main.yml 5 ●●●●● diff | view | raw | blame | history
ansible/roles/common/tasks/main.yml 5 ●●●●● diff | view | raw | blame | history
ansible/roles/common/tasks/ssh.yml 7 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-create-inventory/tasks/main.yml 19 ●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-dns/defaults/main.yml 3 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-dns/tasks/instance_loop.yml 18 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-dns/tasks/main.yml 11 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-dns/tasks/nested_loop.yml 35 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-dns/tasks/pre_checks.yml 13 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-project-create/defaults/main.yaml 22 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-project-create/tasks/main.yaml 49 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-resources-destroy/tasks/detect_project.yml 16 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-resources-destroy/tasks/heat.yml 27 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-resources-destroy/tasks/main.yml 25 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-resources-destroy/tasks/project.yml 13 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-resources-destroy/tasks/project_resources.yml 50 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-template-generate/defaults/main.yaml 60 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-template-generate/tasks/generate_osp_template.yml 12 ●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-template-generate/tasks/locate_template.yml 24 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-template-generate/templates/cloud_template_master.j2 223 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-template-generate/templates/nested_version/cloud_template_master.j2 195 ●●●●● diff | view | raw | blame | history
ansible/roles/infra-osp-template-generate/templates/nested_version/cloud_template_nested.j2 118 ●●●●● diff | view | raw | blame | history
ansible/roles/ocp-client-vm/tasks/packages.yml 8 ●●●● diff | view | raw | blame | history
tools/builds/Dockerfile-openstack 9 ●●●● diff | view | raw | blame | history