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

I want to take input from an external file(containing list of variables) and assign it to the variables in my manifest file by grepping the equivalent values.

$
0
0
**variables.txt** name='abc' port=404 user="xyz" **createuser.pp** $readfile = file('variables.txt'), $name = (i want the value in vaiable.txt to be read here) $readfile is getting all the contents of variables.txt into it, but i want only the subsequent values of the variables assigned to them in .pp file as it is in variables.txt. Please help if it is possible. Thanks, Anu

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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