grab auth tokens from local deploy_keys directory
parent
3f833c569d
commit
a6f7418f19
|
@ -29,7 +29,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
"-e class=please",
|
"-e class=please",
|
||||||
"-e hostname=please.unglue.it",
|
"-e hostname=please.unglue.it",
|
||||||
"-e setdns=true",
|
"-e setdns=true",
|
||||||
"-e branch=sysadmin"
|
"-e branch=master"
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
# Ubuntu 12.04 LTS Precise / PV EBS-SSD boot
|
# Ubuntu 12.04 LTS Precise / PV EBS-SSD boot
|
||||||
# alestic 2015.05.05
|
# alestic 2015.05.05
|
||||||
|
|
||||||
aws.instance_type="t1.micro"
|
#aws.instance_type="t1.micro"
|
||||||
#aws.instance_type="m3.medium"
|
aws.instance_type="m3.medium"
|
||||||
|
|
||||||
aws.region = "us-east-1"
|
aws.region = "us-east-1"
|
||||||
aws.availability_zone = "us-east-1c"
|
aws.availability_zone = "us-east-1c"
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
|
|
||||||
- name: clone the regluit git repo into /opt/regluit
|
- name: clone the regluit git repo into /opt/regluit
|
||||||
sudo: no
|
sudo: no
|
||||||
git: repo=ssh://git@github.com/Gluejar/regluit.git dest=/opt/regluit accept_hostkey=True force=yes version={{branch | default("dj16ry")}}
|
git: repo=ssh://git@github.com/Gluejar/regluit.git dest=/opt/regluit accept_hostkey=True force=yes version={{branch | default("master")}}
|
||||||
|
|
||||||
|
|
||||||
# installing mysql
|
# installing mysql
|
||||||
|
@ -407,18 +407,18 @@
|
||||||
- name: crontab
|
- name: crontab
|
||||||
command: crontab "/opt/regluit/deploy/crontab_{{class}}.txt"
|
command: crontab "/opt/regluit/deploy/crontab_{{class}}.txt"
|
||||||
|
|
||||||
#- name: add ssh keys from public_key directory
|
- name: add ssh keys from /opt/regluit/deploy/public_keys/
|
||||||
# authorized_key: user={{user}} key={{item}} state=present
|
authorized_key: user={{user}} key={{ lookup('file', item) }} state=present
|
||||||
# with_fileglob:
|
with_fileglob:
|
||||||
# - /opt/regluit/deploy/public_keys/*
|
- "../deploy/public_keys/*.pub"
|
||||||
# sudo: no
|
sudo: no
|
||||||
|
|
||||||
- name: add ssh keys from public_key directory
|
- name: add ssh keys from public_key directory
|
||||||
authorized_key: user={{user}} key="{{item}}" state=present
|
authorized_key: user={{user}} key="{{item}}" state=present
|
||||||
with_items:
|
with_items:
|
||||||
- https://github.com/rdhyee.keys
|
- https://github.com/rdhyee.keys
|
||||||
- https://github.com/eshellman.keys
|
- https://github.com/eshellman.keys
|
||||||
sudo: yes
|
sudo: no
|
||||||
|
|
||||||
- name: add public key from jenkins
|
- name: add public key from jenkins
|
||||||
authorized_key: >
|
authorized_key: >
|
||||||
|
|
Loading…
Reference in New Issue