provizioning 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,7 +4,7 @@ Server provisioning tool
4
4
  Intro
5
5
  -----
6
6
 
7
- Provizioning is the tool that Season use internally to setup new machines it uses Capistrano for bootstrapping the server and uploading the recipes, then use puppet for configuration and fine tunning.
7
+ Provizioning is a collection of puppet recipes and utils that we at Season use to setup new machines it uses Capistrano for bootstrapping the server and uploading the recipes, then use puppet for configuration and fine tunning.
8
8
 
9
9
  Usage
10
10
  -----
@@ -1,3 +1,3 @@
1
1
  module Provizioning
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -3,7 +3,6 @@ class { "base": stage => "pre-flight" }
3
3
 
4
4
  class base {
5
5
  include base::time
6
- include base::application
7
6
 
8
7
  $packagelist = ['git-core', 'vim', 'screen']
9
8
  package { $packagelist:
@@ -27,7 +26,7 @@ class base {
27
26
 
28
27
  class time {
29
28
  file { "/etc/localtime":
30
- source => "/usr/share/zoneinfo/Europe/London"
29
+ source => "/usr/share/zoneinfo/Europe/Madrid"
31
30
  }
32
31
 
33
32
  package { "ntp":
@@ -52,20 +51,6 @@ class base {
52
51
  }
53
52
  }
54
53
 
55
- class application {
56
- user { "application":
57
- shell => "/bin/false"
58
- }
59
-
60
- file { "/var/apps":
61
- ensure => directory,
62
- owner => root,
63
- group => application,
64
- require => [User[application]],
65
- mode => 771
66
- }
67
- }
68
-
69
54
  define set_hostname($hostname) {
70
55
  exec { "hostname":
71
56
  command => "hostname ${hostname}",
@@ -52,7 +52,7 @@ class mongo {
52
52
  }
53
53
 
54
54
  package {"mongodb-10gen":
55
- ensure => "1.8.2",
55
+ ensure => "2.0.1",
56
56
  require => [Exec["update apt to find mongodb"], File["/etc/mongodb.conf"]]
57
57
  }
58
58
  }
@@ -12,7 +12,13 @@ class ruby($version = 'ruby-1.9.3-p0') {
12
12
  timeout => "-1",
13
13
  require => [Package["stow"], File["ruby-stow-boot"]];
14
14
  }
15
-
15
+
16
+ # Dependencies
17
+ $packagelist = ['sqlite3', 'libsqlite3-dev']
18
+ package { $packagelist:
19
+ ensure => installed
20
+ }
21
+
16
22
  if ! defined(Package['build-essential']) { package { 'build-essential': ensure => installed } }
17
23
  if ! defined(Package['libcurl4-openssl-dev']) { package { 'libcurl4-openssl-dev': ensure => installed } }
18
24
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provizioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-21 00:00:00.000000000 Z
12
+ date: 2011-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70138972746280 !ruby/object:Gem::Requirement
16
+ requirement: &2153997220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70138972746280
24
+ version_requirements: *2153997220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano-ext
27
- requirement: &70138972745720 !ruby/object:Gem::Requirement
27
+ requirement: &2153996700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70138972745720
35
+ version_requirements: *2153996700
36
36
  description: Server provisioning tools, recipes and templates based on Sprinkle
37
37
  email:
38
38
  - victor.castell@season.es
@@ -87,7 +87,6 @@ files:
87
87
  - puppet/classes/openswan/ipsec.secrets
88
88
  - puppet/classes/openswan/patched_ipsec_initd_script
89
89
  - puppet/classes/openswan/secret.erb
90
- - puppet/classes/post-flight.pp
91
90
  - puppet/classes/postfix.pp
92
91
  - puppet/classes/postfix/main.cf
93
92
  - puppet/classes/rack.pp
@@ -1,17 +0,0 @@
1
- stage { "post-flight": require => Stage[main] }
2
- class { "post-flight": stage => "post-flight" }
3
-
4
- class post-flight {
5
- exec { "application group ownership":
6
- command => "chgrp -R application /var/apps",
7
- require => File["/var/apps"]
8
- }
9
- exec { "application sticky bit":
10
- command => "chmod -R g+rwxs /var/apps",
11
- require => File["/var/apps"]
12
- }
13
- exec { "application permissions":
14
- command => "chmod -R g+rww /var/apps",
15
- require => File["/var/apps"]
16
- }
17
- }