diff --git a/inventory/host_vars/hrf.cloud.fedoraproject.org b/inventory/host_vars/hrf.cloud.fedoraproject.org new file mode 100644 index 0000000000..6389314fb1 --- /dev/null +++ b/inventory/host_vars/hrf.cloud.fedoraproject.org @@ -0,0 +1,10 @@ +--- +instance_type: m1.tiny +image: $el6_qcow_id +keypair: fedora-admin +security_group: webserver +zone: nova +hostbase: hrf- +public_ip: 209.132.184.156 +root_auth_users: codeblock +description: "hrf instance (https://github.com/fedora-infra/hrf)" diff --git a/inventory/inventory b/inventory/inventory index 56ec67df13..3791bdd01a 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -353,6 +353,8 @@ gitlab-dev.cloud.fedoraproject.org # copr dev instances copr-be-dev.cloud.fedoraproject.org copr-fe-dev.cloud.fedoraproject.org +#hrf +hrf.cloud.fedoraproject.org [jenkins-slaves] diff --git a/playbooks/hosts/hrf.cloud.fedoraproject.org.yml b/playbooks/hosts/hrf.cloud.fedoraproject.org.yml new file mode 100644 index 0000000000..c51c66238a --- /dev/null +++ b/playbooks/hosts/hrf.cloud.fedoraproject.org.yml @@ -0,0 +1,27 @@ +- name: check/create instance + hosts: hrf.cloud.fedoraproject.org + user: root + gather_facts: False + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + + tasks: + - include: $tasks/persistent_cloud.yml + +- name: provision instance + hosts: hrf.cloud.fedoraproject.org + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + - ${vars}/${ansible_distribution}.yml + + tasks: + - include: $tasks/cloud_setup_basic.yml + + handlers: + - include: $handlers/restart_services.yml