Last active
August 8, 2019 17:06
-
-
Save jwkidd3/4371d2c9dd8cc7585730f2d4830d3ab7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
package_upgrade: true | |
write_files: | |
- path: /etc/systemd/system/docker.service.d/docker.conf | |
content: | | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/dockerd | |
- path: /etc/docker/daemon.json | |
content: | | |
{ | |
"hosts": ["fd://","tcp://127.0.0.1:2375"] | |
} | |
runcmd: | |
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF | |
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 | |
- apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 | |
- apt install openjdk-8-jdk-headless -y | |
- apt install maven -y | |
- wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
- sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' | |
- apt-get update && apt-get install jenkins -y | |
- AZ_REPO=$(lsb_release -cs) | |
- echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | tee /etc/apt/sources.list.d/azure-cli.list | |
- apt-get install apt-transport-https | |
- apt-get update && sudo apt-get install azure-cli --allow-unauthenticated -y | |
- sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev python-pip | |
- sudo apt install unzip -y | |
- sudo pip install ansible[azure] | |
- wget https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_linux_amd64.zip | |
- unzip terra* | |
- sudo mv terraform /usr/local/bin/ | |
- wget https://releases.hashicorp.com/packer/1.3.2/packer_1.3.2_linux_amd64.zip | |
- unzip packer* | |
- sudo mv packer /usr/local/bin | |
- curl -sSL https://get.docker.com/ | sh | |
- curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
- chmod +x /usr/local/bin/docker-compose | |
- usermod -aG docker azureops | |
- usermod -aG docker jenkins | |
- touch /var/lib/jenkins/jenkins.install.InstallUtil.lastExecVersion | |
- service jenkins restart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment