Created
January 19, 2012 10:42
-
-
Save dcarley/1639348 to your computer and use it in GitHub Desktop.
Example Puppet module for Snow License Manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class snow::config { | |
$snow_siteid = extlookup("snow_siteid") | |
$snow_server = extlookup("snow_server") | |
$snow_crontime = extlookup("snow_crontime", "30 07 * * *") | |
require ::snow::package | |
file { "/etc/snowclient.conf": | |
mode => 600, | |
content => template("snow/etc/snowclient.conf.erb"), | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class snow { | |
include ::snow::package | |
include ::snow::config | |
include ::snow::reload | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class snow::package { | |
package { "xClient": } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class snow::reload { | |
exec { "/usr/bin/xClient uninstall && /usr/bin/xClient install": | |
refreshonly => true, | |
subscribe => Class["snow::config"], | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ConnectionSettings3x] | |
SendToWebService=yes | |
DestinationWebService=<%= snow_server %> | |
[Settings] | |
SiteID=<%= snow_siteid %> | |
ID=guid | |
ConfigurationName=<%= snow_siteid %> | |
CollectHardwareInfo=yes | |
CollectSoftwareInfo=yes | |
MeterSoftwareUsage=no | |
RunJarScanner=yes | |
ReportAllJarFiles=yes | |
TrunkSoftwarePackages=yes | |
CronTimeSettings=<%= snow_crontime %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment