From 6824ae44f0c3ddbcf8cfe334e1db4e2ab456a545 Mon Sep 17 00:00:00 2001 From: Jon Stanley Date: Sat, 9 Aug 2014 16:12:39 +0000 Subject: [PATCH] Add darkserver dev instance --- inventory/host_vars/209.132.184.148 | 16 ++++++++++++++++ inventory/inventory | 3 +++ playbooks/hosts/209.132.184.148.yml | 28 ++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 inventory/host_vars/209.132.184.148 create mode 100644 playbooks/hosts/209.132.184.148.yml diff --git a/inventory/host_vars/209.132.184.148 b/inventory/host_vars/209.132.184.148 new file mode 100644 index 0000000000..018ad24442 --- /dev/null +++ b/inventory/host_vars/209.132.184.148 @@ -0,0 +1,16 @@ +# 2cpus, 3GB of ram 20GB of ephemeral space +instance_type: m1.large +# image id +image: ami-00000013 +keypair: fedora-admin +# what security group to add the host to +security_group: webserver +zone: fedoracloud +# instance id will be appended +hostbase: darkserver-dev- +# ip should be in the 209.132.184.XXX range +public_ip: 209.132.184.148 +# users/groups who should have root ssh access +root_auth_users: kushal @sysadmin-main +description: darkserver dev server + diff --git a/inventory/inventory b/inventory/inventory index 78323e4bc0..d7a9e7d476 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -601,6 +601,9 @@ bodhi.dev.fedoraproject.org # Koschei instance - ticket 4449 koschei.cloud.fedoraproject.org +# darkserver-dev +209.132.184.148 + [jenkins-slaves] # EL-6 builder 209.132.184.165 diff --git a/playbooks/hosts/209.132.184.148.yml b/playbooks/hosts/209.132.184.148.yml new file mode 100644 index 0000000000..e0f8df3d14 --- /dev/null +++ b/playbooks/hosts/209.132.184.148.yml @@ -0,0 +1,28 @@ +- name: check/create instance + hosts: 209.132.184.148 + 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: $YOUR_HOSTNAME/IP HERE + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "{{ private }}/vars.yml" + - /srv/web/infra/ansible/vars//{{ ansible_distribution }}.yml + + tasks: + - include: "{{ tasks }}/cloud_setup_basic.yml + # fill in other actions/includes/etc here + # + # handlers: + # - include: "{{ handlers }}/restart_services.yml