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

PUPPET_ENV='--confdir=puppet'

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

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

# main 

# commented for testing purposes
#install_prerequisites

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