dev/manifests/site.pp
author ymh <ymh.work@gmail.com>
Mon, 05 May 2014 11:17:48 +0200
changeset 645 4d1aa030e746
parent 609 736fdedb7774
permissions -rw-r--r--
Correct some tests in test-suite
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
645
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     1
exec {
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     2
    'apt_update_site':
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     3
      command     => '/usr/bin/apt-get update',
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     4
      timeout     => 2400,
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     5
      returns     => [ 0, 100 ];
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     6
#      refreshonly => true;
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     7
}
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     8
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
     9
Exec["apt_update_site"] -> Package <| |>
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    10
587
a1aa29e7809f add a vagrant profile + puppet config for dev box
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
# upgrade system
645
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    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
4d1aa030e746 Correct some tests in test-suite
ymh <ymh.work@gmail.com>
parents: 609
diff changeset
    36
class { 'sysconfig::deploy': }