Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

I am learning puppet. when I create a manifest without class, it runs perfectly. but when I create a class to wrap it, the puppet runs without error, but has no change.

$
0
0
i tried to create a file hello.txt. if I have the following contents in the init.pp and run, i get my desired result i.e a file named hello.txt with the contents. file { 'D:/puppet/hello.txt': ensure => present, content => 'Hello World \n', } but if I try to create a class, class createfile ($path = "D:/puppet/",){ file { '$path/hello.txt': ensure => present, content => 'Hello World \n', } } the puppet says the catalog is complied, doesn't give me any error but still doesn't create a file.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>