Last active
March 28, 2019 00:10
-
-
Save Magisus/41e13661016a3c118df1a6400eff4e6f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/bash | |
| # On a centos7 VM from the pooler. | |
| # Install PE | |
| latest_pe=$(curl http://neptune.puppetlabs.lan/2019.1/ci-ready/LATEST) | |
| curl -O "http://neptune.puppetlabs.lan/2019.1/ci-ready/puppet-enterprise-${latest_pe}-el-7-x86_64.tar" | |
| tar xvf "puppet-enterprise-${latest_pe}-el-7-x86_64.tar" | |
| pushd "puppet-enterprise-${latest_pe}-el-7-x86_64" | |
| ./puppet-enterprise-installer | |
| puppet agent -t | |
| popd | |
| # Install docker | |
| yum install -y yum-utils \ | |
| device-mapper-persistent-data \ | |
| lvm2 | |
| yum-config-manager \ | |
| --add-repo \ | |
| https://download.docker.com/linux/centos/docker-ce.repo | |
| yum install -y docker-ce docker-ce-cli containerd.io | |
| systemctl start docker | |
| # Install docker-compose | |
| curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| chmod +x /usr/local/bin/docker-compose | |
| yum install -y git | |
| git clone https://github.com/puppetlabs/dujour.git | |
| mkdir dujour/dev-resources/credentials | |
| # Then, copy your GCP credentials file into that directory, and use | |
| # `docker-compose up -d` to start the dujour container. | |
| # Finally, update puppetserver's config to contain: | |
| # product: { update-server-url: "http://localhost:<container's mapping for port 80>" } | |
| # Restart pe-puppetserver. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment