File tree 2 files changed +10
-13
lines changed
2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 8
8
Boolean $manage = true ,
9
9
) {
10
10
if ($manage ) {
11
- file { '/root/' :
12
- ensure => directory ,
13
- mode => ' 0700' ,
14
- source => ' puppet:///modules/nebula/root/' ,
15
- source_permissions => use,
16
- recurse => remote,
17
- purge => false ,
18
- }
19
-
20
- file { '/root/.bash_profile' :
21
- ensure => absent
11
+ file {
12
+ default:
13
+ ensure => file ,
14
+ mode => ' 0644' ,
15
+ ;
16
+ ' /root/.bashrc' : source => ' puppet:///modules/nebula/root/.bashrc' ;
17
+ ' /root/.profile' : source => ' puppet:///modules/nebula/root/.profile' ;
18
+ ' /root/.bash_profile' : ensure => absent ;
22
19
}
23
20
}
24
21
}
Original file line number Diff line number Diff line change 8
8
let ( :facts ) { os_facts }
9
9
10
10
it {
11
- is_expected . to contain_file ( "/root/" )
12
- . with ( recurse : "remote" , purge : false , source_permissions : "use ")
11
+ is_expected . to contain_file ( "/root/.bashrc " )
12
+ is_expected . to contain_file ( "/root/.profile ")
13
13
}
14
14
it {
15
15
is_expected . to contain_file ( "/root/.bash_profile" )
You can’t perform that action at this time.
0 commit comments