Hi,
i will rewrite my question.
according to what i understood from documentation, I should use yaml files with hiera instead of the regular manifest site.pp. I want instead of wriing in the site.pp file to write in the common.yaml file, however i have some difficulty with the syntax of yaml. I want to write the following code in the common.yaml file:
File { '/tmp/name':
ensure => present,
}
which mean i want to create file in /tmp/ with the name "name" and ensure he is present.
and writing all this in yaml file so my server will check if that file exist.
↧