我正在使用 puppet vm 来学习 puppet 教程,并具有以下清单:
# /root/learning-manifests/2.file.pp
file {
'/tmp/test1':
ensure => present,
content => "Hi.",
}
file {
'/tmp/test2':
ensure => directory,
mode => 0644,
}
file {
'/tmp/test3':
ensure => link,
target => '/tmp/test1',
}
notify {
"I'm notifying you.":
}
notify {
"So am I!":
}
Run Code Online (Sandbox Code Playgroud)
我的预期输出是:
notice: I'm notifying you.
notice: /Stage[main]//Notify[I'm notifying you.]/message: defined 'message' as 'I'm notifying you.'
notice: So am I!
notice: /Stage[main]//Notify[So am I!]/message: defined 'message' as 'So am I!'
Run Code Online (Sandbox Code Playgroud)
我的实际输出是: …
puppet ×1