44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# File 'manifests/init.pp', line 44
class vim (
Optional[String[1]] $package_provider = undef,
Array[String[1]] $package_list = ['vim-common', 'vim-enhanced'],
String[1] $root_vimrc_source = 'vim/vimrc',
Stdlib::Absolutepath $root_vimrc_path = '/root/.vimrc',
String[1] $root_vimrc_owner = 'root',
String[1] $root_vimrc_group = 'root',
Stdlib::Filemode $root_vimrc_mode = '0644',
String[1] $root_vim_dir_source = 'vim/vim',
Stdlib::Absolutepath $root_vim_dir_path = '/root/.vim',
String[1] $root_vim_dir_owner = 'root',
String[1] $root_vim_dir_group = 'root',
Stdlib::Filemode $root_vim_dir_mode = '0644',
) {
package { $package_list:
ensure => present,
provider => $package_provider,
}
file { 'root_vimrc':
ensure => file,
source => "puppet:///modules/${root_vimrc_source}",
path => $root_vimrc_path,
owner => $root_vimrc_owner,
group => $root_vimrc_group,
mode => $root_vimrc_mode,
}
file { 'root_vim_dir':
ensure => directory,
recurse => true,
source => "puppet:///modules/${root_vim_dir_source}",
path => $root_vim_dir_path,
owner => $root_vim_dir_owner,
group => $root_vim_dir_group,
mode => $root_vim_dir_mode,
}
}
|