Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node 'POWERS-Soldier-0003' {
- include chocolatey
- package { 'zabbix-agent':
- ensure => '2.4.4',
- provider => 'chocolatey',
- }
- package { 'firefox':
- ensure => '45.0.1',
- provider => 'chocolatey',
- }
- package { 'javaruntime':
- ensure => '8.0.73',
- provider => chocolatey,
- }
- file { 'c:/PWuX/':
- ensure => 'directory',
- source_permissions => ignore,
- }
- file { 'C:/PWuX/lib':
- source => "puppet:///modules/powers-pwux/GMail/dist/lib",
- recurse => true,
- purge =>true,
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/FirefoxProfile/':
- ensure => directory,
- links => follow,
- source => "puppet:///modules/powers-pwux/FirefoxProfile/",
- recurse => remote,
- # require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/GMail.jar':
- ensure => present,
- source => "puppet:///modules/powers-pwux/GMail/dist/GMail.jar",
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/host.txt':
- ensure => present,
- content => 'POWERS-Soldier-0003',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- ######Corrigir a quebra de linhas.
- file { 'c:/PWuX/inicia_testes.bat':
- ensure => present,
- content => "
- java -jar c:\PWuX\Clientes.jar hospital-santa-isabel ihc kepler koerich languiru parati portobello quantity sdp sea sicoob sim stara termotecnica tigre uninter unisul videplast weg
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/inicia_testes.vbs':
- ensure => present,
- content => "Dim WinScriptHost
- Set WinScriptHost = CreateObject(\"WScript.Shell\")
- WinScriptHost.Run \"c:\PWuX\inicia_testes.bat\", 0,1
- Set WinScriptHost = Nothing",
- require => File['c:/PWuX/inicia_testes.bat'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/Yahoo.jar':
- ensure => present,
- source => "puppet:///modules/powers-pwux/Yahoo/dist/Yahoo.jar",
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/lib/PWuXUtils.jar':
- ensure => present,
- source => "puppet:///modules/powers-pwux/PWuXUtils/dist/PWuXUtils.jar",
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/CreateParameters.jar':
- ensure => present,
- source => "puppet:///modules/powers-pwux/CreateParameters/dist/CreateParameters.jar",
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- scheduled_task { 'PWuX Schedule':
- ensure => present,
- enabled => true,
- command => 'C:\WINDOWS\system32\cmd.exe',
- arguments => '/c start "" /min "C:\PWuX\inicia_testes.vbs"',
- user => 'powers',
- trigger => {
- schedule => daily,
- every => 1, # Specifies every other day. Defaults to 1 (every day).
- start_date => '2011-08-31', # Defaults to 'today'
- start_time => '08:00', # Must be specified
- minutes_interval => '1', # Repeat this task every 5 minutes
- }
- }
- user {'powers':
- name => 'powers',
- ensure => present,
- groups => ['Users','Administrators'],
- password => 'Tcmda@2013',
- managehome => true,
- }
- file { 'C:/PWuX/PWuX-FUSESC-custom-AutoAtendimento.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/PWuX-FUSESC-custom-AutoAtendimento/dist/PWuX-FUSESC-custom-AutoAtendimento.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/PWuX-FUSESC-custom-AutoAtendimento-Extrato.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/PWuX-FUSESC-custom-AutoAtendimento-Extrato/dist/PWuX-FUSESC-custom-AutoAtendimento-Extrato.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/PWuX-FUSESC-custom-ECM-documento.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/PWuX-FUSESC-custom-ECM-documento/dist/PWuX-FUSESC-custom-ECM-documento.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/PWuX-FUSESC-custom-ECM-licenciamento.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/PWuX-FUSESC-custom-ECM-licenciamento/dist/PWuX-FUSESC-custom-ECM-licenciamento.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/PWuX-CELESC-custom-AgenciaWeb.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/PWuX-CELESC-custom-AgenciaWeb/dist/PWuX-CELESC-custom-AgenciaWeb.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/PWuX-CELESC-custom-Licitacoes.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/PWuX-CELESC-custom-Licitacoes/dist/PWuX-CELESC-custom-Licitacoes.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/PWuX-custom-JFSC-eproc.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/PWuX-custom-JFSC-eproc/dist/PWuX-custom-JFSC-eproc.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- file { 'C:/PWuX/Clientes.jar':
- ensure => 'present',
- source => 'puppet:///modules/powers-pwux/Clientes/dist/Clientes.jar',
- require => File['c:/PWuX'],
- source_permissions => ignore,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement