dust-deploy 0.13.16 → 0.13.17

Sign up to get free protection for your applications and to get access to all the features.
data/changelog.md CHANGED
@@ -1,10 +1,32 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.13.17
5
+ ------------
6
+
7
+ - small bugfixes
8
+ - postfix recipe now supports sql backends
9
+
10
+ recipes:
11
+ nginx:
12
+ postfix:
13
+ sql:
14
+ relay_domains.cf:
15
+ host: /var/run/postgresql
16
+ user: postfixadmin
17
+ dbname: postfix
18
+ query: "SELECT domain FROM domain WHERE domain='%s' and backupmx = true"
19
+ virtual_alias_maps.cf:
20
+ host: /var/run/postgresql
21
+ user: postfixadmin
22
+ dbname: postfix
23
+ query: "SELECT goto FROM alias WHERE address='%s' AND active = true"
24
+
25
+
4
26
  0.13.16
5
27
  ------------
6
28
 
7
- - nginx also supports mulitple packages now
29
+ - nginx also supports mulitple packages now
8
30
 
9
31
  recipes:
10
32
  nginx:
@@ -14,7 +36,7 @@ Changelog
14
36
  0.13.15
15
37
  ------------
16
38
 
17
- - postfix and dovecot recipes now support multiple packages.
39
+ - postfix and dovecot recipes now support multiple packages.
18
40
 
19
41
  recipes:
20
42
  dovecot:
@@ -7,6 +7,7 @@ class CupsClient < Recipe
7
7
  @node.rm('/etc/cups/client.conf')
8
8
  else
9
9
  return false unless install
10
+ @node.mkdir('/etc/cups')
10
11
  @node.messages.add("setting servername to: #{@config}").ok
11
12
  @node.write '/etc/cups/client.conf', "ServerName #{@config}\n"
12
13
  end
@@ -38,8 +38,11 @@ class Duplicity < Recipe
38
38
 
39
39
  # add hostkey to known_hosts
40
40
  if config['hostkey']
41
- msg = @node.messages.add('checking if ssh key is in known_hosts')
42
- unless msg.parse_result(@node.exec("grep -q '#{config['hostkey']}' /root/.ssh/known_hosts")[:exit_code] == 0)
41
+ msg = @node.messages.add('checking if ssh key is in known_hosts: ')
42
+ if @node.exec("grep -q '#{config['hostkey']}' /root/.ssh/known_hosts")[:exit_code] == 0
43
+ msg.ok('yes')
44
+ else
45
+ msg.ok('no')
43
46
  @node.mkdir '/root/.ssh', :indent => 2
44
47
  @node.append '/root/.ssh/known_hosts', "#{config['hostkey']}\n", :indent => 2
45
48
  end
@@ -34,6 +34,17 @@ class Postfix < Recipe
34
34
  @node.write "#{@config['etc_dir']}/master.cf", master_cf
35
35
  end
36
36
 
37
+ if @config['sql']
38
+ @node.messages.add("configuring sql database\n")
39
+ @node.mkdir("#{@config['etc_dir']}/sql")
40
+
41
+ @config['sql'].each do |file, config|
42
+ content = ''
43
+ config.each { |key, value| content << "#{key} = #{value}\n" }
44
+ @node.write("#{@config['etc_dir']}/sql/#{file}", content, :indent => 2)
45
+ end
46
+ end
47
+
37
48
  @node.restart_service @config['service'] if @options.restart?
38
49
  @node.reload_service @config['service'] if @options.reload?
39
50
  end
data/lib/dust/server.rb CHANGED
@@ -133,7 +133,7 @@ module Dust
133
133
  def append destination, newcontent, options = {}
134
134
  options = default_options.merge options
135
135
 
136
- messages.add("appending to #{File.basename destination}", options)
136
+ msg = messages.add("appending to #{File.basename destination}", options)
137
137
 
138
138
  content = exec("cat #{destination}")[:stdout]
139
139
  content.concat newcontent
data/lib/dust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dust
2
- VERSION = "0.13.16"
2
+ VERSION = "0.13.17"
3
3
  end
metadata CHANGED
@@ -1,116 +1,137 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dust-deploy
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 13
8
- - 16
9
- version: 0.13.16
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.13.17
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - kris kechagia
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-07-03 00:00:00 +02:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: json
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
30
22
  type: :runtime
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
33
- name: net-ssh
34
23
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- segments:
40
- - 0
41
- version: "0"
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: net-ssh
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
42
38
  type: :runtime
43
- version_requirements: *id002
44
- - !ruby/object:Gem::Dependency
45
- name: net-scp
46
39
  prerelease: false
47
- requirement: &id003 !ruby/object:Gem::Requirement
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- segments:
52
- - 0
53
- version: "0"
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: net-scp
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
54
  type: :runtime
55
- version_requirements: *id003
56
- - !ruby/object:Gem::Dependency
57
- name: net-sftp
58
55
  prerelease: false
59
- requirement: &id004 !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- segments:
64
- - 0
65
- version: "0"
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: net-sftp
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
66
70
  type: :runtime
67
- version_requirements: *id004
68
- - !ruby/object:Gem::Dependency
69
- name: thor
70
71
  prerelease: false
71
- requirement: &id005 !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- segments:
76
- - 0
77
- version: "0"
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: thor
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
78
86
  type: :runtime
79
- version_requirements: *id005
80
- - !ruby/object:Gem::Dependency
81
- name: ipaddress
82
87
  prerelease: false
83
- requirement: &id006 !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
- version: "0"
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: ipaddress
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
90
102
  type: :runtime
91
- version_requirements: *id006
92
- - !ruby/object:Gem::Dependency
93
- name: colorize
94
103
  prerelease: false
95
- requirement: &id007 !ruby/object:Gem::Requirement
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- segments:
100
- - 0
101
- version: "0"
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: colorize
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
102
118
  type: :runtime
103
- version_requirements: *id007
104
- description: when puppet and chef suck because you want to be in control and sprinkle just cannot do enough for you
105
- email:
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: when puppet and chef suck because you want to be in control and sprinkle
127
+ just cannot do enough for you
128
+ email:
106
129
  - kk@rndsec.net
107
- executables:
130
+ executables:
108
131
  - dust
109
132
  extensions: []
110
-
111
133
  extra_rdoc_files: []
112
-
113
- files:
134
+ files:
114
135
  - .gitignore
115
136
  - Gemfile
116
137
  - LICENSE
@@ -186,35 +207,28 @@ files:
186
207
  - lib/dust/recipes/zabbix_agent.rb
187
208
  - lib/dust/server.rb
188
209
  - lib/dust/version.rb
189
- has_rdoc: true
190
- homepage: ""
210
+ homepage: ''
191
211
  licenses: []
192
-
193
212
  post_install_message:
194
213
  rdoc_options: []
195
-
196
- require_paths:
214
+ require_paths:
197
215
  - lib
198
- required_ruby_version: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - ">="
201
- - !ruby/object:Gem::Version
202
- segments:
203
- - 0
204
- version: "0"
205
- required_rubygems_version: !ruby/object:Gem::Requirement
206
- requirements:
207
- - - ">="
208
- - !ruby/object:Gem::Version
209
- segments:
210
- - 0
211
- version: "0"
216
+ required_ruby_version: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ none: false
224
+ requirements:
225
+ - - ! '>='
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
212
228
  requirements: []
213
-
214
229
  rubyforge_project: dust-deploy
215
- rubygems_version: 1.3.6
230
+ rubygems_version: 1.8.24
216
231
  signing_key:
217
232
  specification_version: 3
218
233
  summary: small server deployment tool for complex environments
219
234
  test_files: []
220
-