cat << EOF | puppet apply

Apparently, puppet apply can handle stdin streams.

This could be useful. I think I’ll need to add this to /etc/local.d to replace some of the provisioning scripts that I was writing.

THIS CHANGES EVERYTHING.

Example

$ cat << EOF | puppet apply
file {'hello.txt.':
path => "$(pwd)/hello.txt",
ensure => present,
content => "Hello World!",
}
EOF

Advertisements

2 comments

  1. Pingback: Encrypted | Fragments
  2. Pingback: chef-solo | Fragments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s