diff --git a/inventory/host_vars/copr-be-dev2.cloud.fedoraproject.org b/inventory/host_vars/copr-be-dev2.cloud.fedoraproject.org new file mode 100644 index 0000000000..af15ad6fdd --- /dev/null +++ b/inventory/host_vars/copr-be-dev2.cloud.fedoraproject.org @@ -0,0 +1,19 @@ +--- +instance_type: m1.xlarge +flavor_id: 2 +# image: "{{ f20_qcow_id }}" +image: "86422ca2-6eeb-435c-87e8-402b3c7c3b7b" +keypair: fas +security_group: ssh-anywhere-coprdev,default +OS_TENANT_ID: "566a072fb1694950998ad191fee3833b" +OS_TENANT_NAME: "coprdev" +zone: nova +hostbase: copr-be-dev2- +public_ip: 209.132.184.44 +root_auth_users: bkabrda msuchy tradej pingou vgologuz +description: copr dispatcher and repo server - dev instance +tcp_ports: ['22', '80', '443'] + +# Copr vars +copr_hostbase: copr-be-dev +_copr_be_conf: copr-be.conf-dev diff --git a/inventory/inventory b/inventory/inventory index 10810b5857..a327887afe 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -815,6 +815,7 @@ copr-fe-dev.cloud.fedoraproject.org [copr-back-stg] copr-be-dev.cloud.fedoraproject.org +copr-be-dev2.cloud.fedoraproject.org [copr-keygen-stg] 209.132.184.124 diff --git a/playbooks/groups/copr-backend.yml b/playbooks/groups/copr-backend.yml index c317408f35..8b68a5b279 100644 --- a/playbooks/groups/copr-backend.yml +++ b/playbooks/groups/copr-backend.yml @@ -1,5 +1,6 @@ - name: check/create instance - hosts: copr-back:copr-back-stg + hosts: copr-be-dev2.cloud.fedoraproject.org + #hosts: copr-back:copr-back-stg #hosts: copr-back-stg user: root gather_facts: False @@ -7,13 +8,34 @@ vars_files: - /srv/web/infra/ansible/vars/global.yml - "/srv/private/ansible/vars.yml" + vars: + OS_AUTH_URL: "https://fed-cloud09.cloud.fedoraproject.org:5000/v2.0" + # With the addition of Keystone we have standardized on the term **tenant** + # # as the entity that owns the resources. + # OS_TENANT_ID: "566a072fb1694950998ad191fee3833b" + # OS_TENANT_NAME: "coprdev" + # + # # In addition to the owning entity (tenant), openstack stores the entity + # # performing the action as the **user**. + # OS_USERNAME: "user" + + vars_prompt: + - name: "OS_USERNAME" + prompt: "Enter user name for perform actions with OS" + + - name: "OS_PASSWORD" + prompt: "Enter OS password" + private: yes + tasks: - - include: "{{ tasks }}/persistent_cloud.yml" + # - include: "{{ tasks }}/persistent_cloud.yml" + - include: "{{ tasks }}/persistent_cloud_new.yml" - include: "{{ tasks }}/growroot_cloud.yml" - name: cloud basic setup - hosts: copr-back:copr-back-stg + hosts: copr-be-dev2.cloud.fedoraproject.org + #hosts: copr-back:copr-back-stg #hosts: copr-back-stg vars_files: - /srv/web/infra/ansible/vars/global.yml @@ -23,7 +45,8 @@ - include: "{{ tasks }}/cloud_setup_basic.yml" - name: provision instance - hosts: copr-back:copr-back-stg + hosts: copr-be-dev2.cloud.fedoraproject.org + #hosts: copr-back:copr-back-stg #hosts: copr-back-stg user: root gather_facts: False