summaryrefslogtreecommitdiff
path: root/deploy.sh
blob: 0db6cf9199023501f6ede47ac364de702ab50fcf (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, licence, 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 $@