aboutsummaryrefslogtreecommitdiffstats
path: root/modules/testvm
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-10-20 12:45:55 +0300
committerThomas Backlund <tmb@mageia.org>2015-10-20 12:45:55 +0300
commit53bf0ab2fe4588f5493c18c6663b755601458303 (patch)
treead81a4b4fb384783913f90d7e4aa8d66ecc30119 /modules/testvm
parente55935369e1efd699090a8e667762a4e2d29ad1b (diff)
downloadpuppet-53bf0ab2fe4588f5493c18c6663b755601458303.tar
puppet-53bf0ab2fe4588f5493c18c6663b755601458303.tar.gz
puppet-53bf0ab2fe4588f5493c18c6663b755601458303.tar.bz2
puppet-53bf0ab2fe4588f5493c18c6663b755601458303.tar.xz
puppet-53bf0ab2fe4588f5493c18c6663b755601458303.zip
lint fixes for testvm
Diffstat (limited to 'modules/testvm')
-rw-r--r--modules/testvm/manifests/init.pp54
1 files changed, 27 insertions, 27 deletions
diff --git a/modules/testvm/manifests/init.pp b/modules/testvm/manifests/init.pp
index a13608f1..d8ca9564 100644
--- a/modules/testvm/manifests/init.pp
+++ b/modules/testvm/manifests/init.pp
@@ -1,40 +1,40 @@
class testvm
{
- $testvm_login = "testvm"
- $testvmdir = "/home/testvm"
+ $testvm_login = 'testvm'
+ $testvmdir = '/home/testvm'
- group {"$testvm_login":
- ensure => present,
+ group {"${testvm_login}":
+ ensure => present,
}
- user {"$testvm_login":
- ensure => present,
- comment => "System user used to run test VMs",
- managehome => true,
- gid => $vmtest_login,
- shell => "/bin/bash",
+ user {"${testvm_login}":
+ ensure => present,
+ comment => "System user used to run test VMs",
+ managehome => true,
+ gid => $vmtest_login,
+ shell => '/bin/bash',
}
-
- file { "$testvmdir/bin/":
- ensure => directory,
+
+ file { "${testvmdir}/bin/":
+ ensure => directory,
require => User[$testvm_login],
}
- file { "$testvmdir/bin/_vm":
- ensure => present,
- owner => root,
- group => root,
- mode => 644,
- source => "puppet:///modules/testvm/_vm",
- require => File["$testvmdir/bin"],
+ file { "${testvmdir}/bin/_vm":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => '0644',
+ source => "puppet:///modules/testvm/_vm",
+ require => File["${testvmdir}/bin"],
}
- file { "$testvmdir/bin/vm-jonund":
- ensure => present,
- owner => root,
- group => $testvm_login,
- mode => 750,
- source => "puppet:///modules/testvm/vm-jonund",
- require => File["$testvmdir/bin"],
+ file { "${testvmdir}/bin/vm-jonund":
+ ensure => present,
+ owner => root,
+ group => $testvm_login,
+ mode => '0750',
+ source => "puppet:///modules/testvm/vm-jonund",
+ require => File["${testvmdir}/bin"],
}
}