-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpuppet-open-source.yaml
45 lines (45 loc) · 1.19 KB
/
puppet-open-source.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
inputs: {}
resources:
Cloud_LoadBalancer_1:
type: Cloud.LoadBalancer
properties:
name: WebLB
routes:
- port: '80'
protocol: http
instancePort: '80'
instanceProtocol: http
network: '${Cloud_Network_1.name}'
instances:
- '${Cloud_Machine_1.id}'
internetFacing: false
Cloud_Machine_1:
type: Cloud.Machine
properties:
count: 1
cloudConfig: |
#cloud-config
package:
- wget
- git
runcmd:
- wget https://apt.puppet.com/puppet6-release-xenial.deb
- dpkg -i puppet6-release-xenial.deb
- apt-get update
- apt-get install puppet -y
- git clone -b puppet https://github.com/codyde/puppet-demoapp /puppet-demoapp
- puppet apply --parser future /puppet-demoapp/plans/bootcampapp.pp --debug
- systemctl restart nginx
constraints:
- tag: 'cloud:aws'
image: Ubuntu
flavor: medium
networks:
- name: '${Cloud_Network_1.name}'
Cloud_Network_1:
type: Cloud.Network
properties:
name: Core
constraints:
- tag: 'cloud:aws'
networkType: existing