Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##puppet config mapleLM
- class licence::maplelm {
- package { 'redhat-lsb-core':
- ensure => latest,
- }
- file {'/opt/MapleLM':
- ensure => directory,
- mode => 755,
- }
- file {'/opt/MapleLM/FLEXlm':
- ensure => directory,
- require => file['/opt/MapleLM']
- mode => 755,
- }
- file {'/opt/MapleLM/FLEXlm/11.7':
- ensure => directory,
- require => file['/opt/MapleLM/FLEXlm']
- mode => 755,
- }
- file { "/opt/MapleLM/FLEXlm/11.7/flexhostid":
- owner => 'root',
- group => 'root',
- mode => 755,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/11.7/flexhostid',
- require => file['/opt/MapleLM/FLEXlm/11.7'],
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmgrd":
- owner => 'root',
- group => 'root',
- mode => 755,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/11.7/lmgrd',
- require => file['/opt/MapleLM/FLEXlm/11.7'],
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmgrd_old":
- owner => 'root',
- group => 'root',
- mode => 755,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/11.7/lmgrd_old',
- require => file['/opt/MapleLM/FLEXlm/11.7'],
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmutil":
- owner => 'root',
- group => 'root',
- mode => 755,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/11.7/lmutil',
- require => file['/opt/MapleLM/FLEXlm/11.7'],
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmutil_old":
- owner => 'root',
- group => 'root',
- mode => 755,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/11.7/lmutil_old',
- require => file['/opt/MapleLM/FLEXlm/11.7'],
- }
- file { "/opt/MapleLM/FLEXlm/11.7/Maple2015.lic":
- owner => 'root',
- group => 'root',
- mode => 755,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/11.7/Maple2015.lic',
- require => file['/opt/MapleLM/FLEXlm/11.7'],
- }
- file { "/opt/MapleLM/FLEXlm/11.7/maplelmg":
- owner => 'root',
- group => 'root',
- mode => 755,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/11.7/maplelmg',
- require => file['/opt/MapleLM/FLEXlm/11.7'],
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmcksum":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmdiag":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmdown":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmhostid":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lminstall":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmremove":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmreread":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmstat":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmswitchr":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/opt/MapleLM/FLEXlm/11.7/lmver":
- ensure => 'link',
- target => '/opt/MapleLM/FLEXlm/11.7/lmutil',
- }
- file { "/etc/systemd/system/maplelm.service":
- owner => 'root',
- group => 'root',
- mode => 655,
- backup => false,
- source => 'puppet:///modules/licence/MapleLM/maplelm.service',
- require => file['/opt/MapleLM'],
- }
- service {'maplelm':
- ensure => running,
- hasrestart => true,
- hasstatus => true,
- require => file['/etc/systemd/system/maplelm.service'],
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement