Quantcast
Viewing all articles
Browse latest Browse all 6104

Optional Hash in puppet

Hi, I'm trying to create an optional hash variable in puppet but it gives me an error. What am I doing wrong here ? > define mym::usr_acct (> String $user = $title,> String $group,> Integer $uid,> Integer $gid,> String $home,> Optional[Hash[String, Integer]] $groups,> ){ It gives me below error saying it expects an integer. Error: Evaluation Error: Error while evaluating a Resource Statement, Mym::Usr_acct[websvc]: parameter 'groups' entry 'name' expects an Integer value, got String at /tmp/a.pp:1 on node centos.vm This is what I have in /tmp/a.pp > mym::usr_acct { websvc :> group => 'websvc',> uid => 4501,> gid => 507,> home => '/home/websvc',> groups => {> name => 'allok',> id => 9999, }, }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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