I have Puppet deployed on a variety of systems, both workstation and server. I need the servers on UTC...which is easy. But the workstations need to be on local time lest the users have to deal with UTC on all their email and calendar programs (which is less than ideal when you reach mid to senior management types). The servers stay UTC for a variety of reasons out of my control. I cannot execute this with GPO because I don't control the domain.
So here is the variable line:
And here's the command:
The UTC executes fine, but I can't get local time variable to take. I figure that since CST needs spelled out with spaces, it needs some kind of variable enclosure...but every edit I try kicks back errors and Puppet can't seem to pass the variable properly. What am I getting wrong on the variable syntax?
So here is the variable line:
Code:
$timezone=[$os[release][full] ? { '10' => ('Central Standard Time') , default => 'UTC'}]
And here's the command:
Code:
command =>"tzutil /s \"$timezone\"",
The UTC executes fine, but I can't get local time variable to take. I figure that since CST needs spelled out with spaces, it needs some kind of variable enclosure...but every edit I try kicks back errors and Puppet can't seem to pass the variable properly. What am I getting wrong on the variable syntax?