This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
4
Create a variable in a module based on hostname
Post Body
Puppet 6.x - I need to create a variable based on the hostname of the machine. I have a client server kind of thing and I need to use the server name in the module for the client.
for example if I have these hostnames:
server12345
client12345
Inside bash I can do something like this:
servername="server${HOSTNAME:6:5}"
How do I do that inside a puppet module?
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Puppet/comm...