aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-08-22 15:36:44 +0000
committerNicolas Vigier <boklm@mageia.org>2011-08-22 15:36:44 +0000
commit72719e240f6a982f63d49ec7c09bde1db34d7c1f (patch)
treed56a14966fa820cabc365c05215ff7f1e31a193a
parent913f60823ec2bd2792760d83997e337f46ee269c (diff)
downloadpuppet-72719e240f6a982f63d49ec7c09bde1db34d7c1f.tar
puppet-72719e240f6a982f63d49ec7c09bde1db34d7c1f.tar.gz
puppet-72719e240f6a982f63d49ec7c09bde1db34d7c1f.tar.bz2
puppet-72719e240f6a982f63d49ec7c09bde1db34d7c1f.tar.xz
puppet-72719e240f6a982f63d49ec7c09bde1db34d7c1f.zip
fix indent
-rw-r--r--modules/openssl/manifests/init.pp56
1 files changed, 28 insertions, 28 deletions
diff --git a/modules/openssl/manifests/init.pp b/modules/openssl/manifests/init.pp
index b1800a54..9f5ec9bc 100644
--- a/modules/openssl/manifests/init.pp
+++ b/modules/openssl/manifests/init.pp
@@ -1,43 +1,43 @@
class openssl {
class base {
- package { 'openssl':
- ensure => installed
- }
+ package { 'openssl':
+ ensure => installed
+ }
}
- define self_signed_cert($directory = '/etc/certs') {
- include openssl::base
-
- $pem_file = "$name.pem"
- exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $pem_file -out $pem_file -subj '/CN=$name'":
- cwd => "$directory",
- creates => "$directory/$name.pem",
- require => Package['openssl']
- }
+ define self_signed_cert($directory = '/etc/certs') {
+ include openssl::base
+
+ $pem_file = "$name.pem"
+ exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $pem_file -out $pem_file -subj '/CN=$name'":
+ cwd => "$directory",
+ creates => "$directory/$name.pem",
+ require => Package['openssl']
}
+ }
- define self_signed_splitted_cert($filename = '',
- $directory = '/etc/certs',
- $owner = "root",
- $group = 'root',
- $mode = '600') {
- include openssl::base
+ define self_signed_splitted_cert($filename = '',
+ $directory = '/etc/certs',
+ $owner = "root",
+ $group = 'root',
+ $mode = '600') {
+ include openssl::base
- $crt_file = "$filename.crt"
- $key_file = "$filename.key"
- exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $key_file -out $crt_file -subj '/CN=$name'":
- cwd => "$directory",
- creates => "$directory/$key_file",
- require => Package['openssl'],
- before => [ File["$directory/$key_file"],
+ $crt_file = "$filename.crt"
+ $key_file = "$filename.key"
+ exec { "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $key_file -out $crt_file -subj '/CN=$name'":
+ cwd => "$directory",
+ creates => "$directory/$key_file",
+ require => Package['openssl'],
+ before => [ File["$directory/$key_file"],
File["$directory/$crt_file"]]
- }
+ }
- file { ["$directory/$key_file","$directory/$crt_file"]:
+ file { ["$directory/$key_file","$directory/$crt_file"]:
owner => $owner,
group => $group,
mode => $mode
- }
}
+ }
}