Skip to content

Commit 37e2121

Browse files
author
Liam Bennett
committed
Merge pull request #104 from puppet-community/fix_91
Fix the projects directory default in framework.properies.
2 parents 9b66900 + 723a0a0 commit 37e2121

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
'framework.server.username' => 'admin',
4444
'framework.server.password' => 'admin',
4545
'rdeck.base' => '/var/lib/rundeck',
46-
'framework.projects.dir' => '/var/rundeck/projects',
46+
'framework.projects.dir' => '/var/lib/rundeck/projects',
4747
'framework.etc.dir' => '/etc/rundeck',
4848
'framework.var.dir' => '/var/lib/rundeck/var',
4949
'framework.tmp.dir' => '/var/lib/rundeck/var/tmp',

spec/acceptance/rundeck_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class { 'rundeck': }
1414
EOS
1515

1616
# Run it twice and test for idempotency
17-
expect(apply_manifest(pp).exit_code).to_not eq(1)
17+
expect(apply_manifest(pp, :expect_changes => true).exit_code).to eq(2)
1818
expect(apply_manifest(pp).exit_code).to eq(0)
1919
end
2020

spec/classes/config/global/framework_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'framework.server.url' => 'http://test.domain.com:4440',
2020
'framework.server.username' => 'admin',
2121
'framework.server.password' => 'admin',
22-
'framework.projects.dir' => '/var/rundeck/projects',
22+
'framework.projects.dir' => '/var/lib/rundeck/projects',
2323
'framework.etc.dir' => '/etc/rundeck',
2424
'framework.var.dir' => '/var/lib/rundeck/var',
2525
'framework.tmp.dir' => '/var/lib/rundeck/var/tmp',

spec/classes/config/global/project_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
}}
1313

1414
project_details = {
15-
'project.dir' => '/var/rundeck/projects/${project.name}',
16-
'project.etc.dir' => '/var/rundeck/projects/${project.name}/etc',
17-
'project.resources.file' => '/var/rundeck/projects/${project.name}/etc/resources.xml',
15+
'project.dir' => '/var/lib/rundeck/projects/${project.name}',
16+
'project.etc.dir' => '/var/lib/rundeck/projects/${project.name}/etc',
17+
'project.resources.file' => '/var/lib/rundeck/projects/${project.name}/etc/resources.xml',
1818
'project.description' => '',
1919
'project.organization' => ''
2020
}

spec/classes/config_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
content.should include('-Drundeck.server.configDir=/etc/rundeck')
4444
content.should include('-Dserver.datastore.path=/var/lib/rundeck/data')
4545
content.should include('-Drundeck.server.serverDir=/var/lib/rundeck')
46-
content.should include('-Drdeck.projects=/var/rundeck/projects')
46+
content.should include('-Drdeck.projects=/var/lib/rundeck/projects')
4747
content.should include('-Drdeck.runlogs=/var/lib/rundeck/logs')
4848
content.should include('-Drundeck.config.location=/etc/rundeck/rundeck-config.groovy')
4949
content.should include('-Djava.security.auth.login.config=/etc/rundeck/jaas-auth.conf')

spec/defines/config/resource_source_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
'resources.source.1.config.includeServerNode' => 'false',
2323
'resources.source.1.config.generateFileAutomatically' => 'true',
2424
'resources.source.1.config.format' => 'resourcexml',
25-
'resources.source.1.config.file' => '/var/rundeck/projects/test/etc/source one.xml',
25+
'resources.source.1.config.file' => '/var/lib/rundeck/projects/test/etc/source one.xml',
2626
'resources.source.1.type' => 'file'
2727
}
2828

2929
file_details.each do |key,value|
3030
it { should contain_ini_setting("source one::#{key}").with(
31-
'path' => '/var/rundeck/projects/test/etc/project.properties',
31+
'path' => '/var/lib/rundeck/projects/test/etc/project.properties',
3232
'setting' => key,
3333
'value' => value
3434
) }
3535
end
3636

3737
it do
38-
should contain_file('/var/rundeck/projects/test').with(
38+
should contain_file('/var/lib/rundeck/projects/test').with(
3939
'owner' => 'rundeck',
4040
'group' => 'rundeck'
4141
)
@@ -66,7 +66,7 @@
6666

6767
url_details.each do |key,value|
6868
it { should contain_ini_setting("source one::#{key}").with(
69-
'path' => '/var/rundeck/projects/test/etc/project.properties',
69+
'path' => '/var/lib/rundeck/projects/test/etc/project.properties',
7070
'setting' => key,
7171
'value' => value
7272
) }
@@ -94,7 +94,7 @@
9494

9595
directory_details.each do |key,value|
9696
it { should contain_ini_setting("source one::#{key}").with(
97-
'path' => '/var/rundeck/projects/test/etc/project.properties',
97+
'path' => '/var/lib/rundeck/projects/test/etc/project.properties',
9898
'setting' => key,
9999
'value' => value
100100
) }
@@ -131,7 +131,7 @@
131131

132132
script_details.each do |key,value|
133133
it { should contain_ini_setting("source one::#{key}").with(
134-
'path' => '/var/rundeck/projects/test/etc/project.properties',
134+
'path' => '/var/lib/rundeck/projects/test/etc/project.properties',
135135
'setting' => key,
136136
'value' => value
137137
) }

0 commit comments

Comments
 (0)