summaryrefslogtreecommitdiff
path: root/deploy.sh
blob: 6aab1119a6ea8865e20d34af53c760692ef6d8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -x
# 
# missing: header, licence, usage

PUPPET_ENV='--confdir=puppet'

install_prerequisites () {
  apt-get update
  apt-get install puppet

  # lsb is needed for a first puppet run
  puppet apply $PUPPET_ENV --execute 'include lsb'
}

# main 

# commented for testing purposes
#install_prerequisites

puppet apply $PUPPET_ENV puppet/manifests/site.pp $@