osops-tools-contrib/terraform/cicd/gerrit.tpl
Victor Morales 1d4aa339a9 Add CI/CD terraform scripts
Change-Id: I791c9c50c70fcf41077c0c5125bce2b534be51c7
2016-10-16 11:56:25 -05:00

16 lines
461 B
Smarty

#cloud-config
ssh_pwauth: true
users:
- name: cicd
passwd: $6$rounds=4096$DWIvD0b83l1wOVo$3Ww47Krh0JkgohulOJbr4W7WcvQuzlapHd0/qfjEmGvrA1YHjxmhS.Up6B/WV1/b5Yc5J7kvvPFvIbcqpMHII/
lock_passwd: False
sudo: ["ALL=(ALL) NOPASSWD:ALL\nDefaults:stack !requiretty"]
shell: /bin/bash
runcmd:
- wget https://raw.githubusercontent.com/electrocucaracha/terraform-cicd/master/gerrit/postinstall.sh
- chmod 755 postinstall.sh
- bash postinstall.sh