| author | ymh <ymh.work@gmail.com> |
| Mon, 05 May 2014 11:17:48 +0200 | |
| changeset 645 | 4d1aa030e746 |
| parent 609 | 736fdedb7774 |
| permissions | -rw-r--r-- |
| 645 | 1 |
exec { |
2 |
'apt_update_site': |
|
3 |
command => '/usr/bin/apt-get update', |
|
4 |
timeout => 2400, |
|
5 |
returns => [ 0, 100 ]; |
|
6 |
# refreshonly => true; |
|
7 |
} |
|
8 |
||
9 |
Exec["apt_update_site"] -> Package <| |> |
|
10 |
||
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
# upgrade system |
| 645 | 12 |
class { 'sysconfig::sys_upgrade': }-> |
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
|
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
# install packages |
| 645 | 15 |
class { 'sysconfig::packages': }-> |
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
|
|
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
# install postgres |
| 645 | 18 |
class { 'sysconfig::postgresql': }-> |
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
|
|
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
# install nginx |
| 645 | 21 |
class { 'sysconfig::nginx': }-> |
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
|
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
# create python |
| 645 | 24 |
class { 'sysconfig::buildout': }-> |
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
25 |
|
|
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
26 |
# write config |
| 645 | 27 |
class { 'sysconfig::config': }-> |
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
28 |
|
|
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
29 |
# write django_init |
| 645 | 30 |
class { 'sysconfig::django_init': }-> |
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
31 |
|
|
609
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
587
diff
changeset
|
32 |
# config testserver_init |
| 645 | 33 |
class { 'sysconfig::testserver_init': vagrant_base_path => $vagrant_base_path }-> |
|
609
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
587
diff
changeset
|
34 |
|
|
587
a1aa29e7809f
add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
35 |
# deploy |
| 645 | 36 |
class { 'sysconfig::deploy': } |