On 4/23/14, 8:10 PM, "Aaron Shegrud" <[email protected]> wrote:
>I created a fact, loaded it into the my modules/[module]/lib/facter/
>directory
>it synchronized across all my users.
>I can see the fact in puppet-dashboard for all of my
>users:mac_airport_iden1
>but I cannot seem to use it in a command.
>
>I'm trying to run this command:
>
>exec {'killwifi':
> command => '/usr/sbin/networksetup -setairportpower
>${mac_airport_id} off',
> }
>
>but am getting an error on each run:
>Could not match ${mac_airport_id}
>
>
>
You need double quotes single quotes don¹t interpret variables.
See http://docs.puppetlabs.com/learning/manifests.html
Jason
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CF7DD74C.4FA8%25raistlin%40tacorp.net.
For more options, visit https://groups.google.com/d/optout.