Sha256: 15bc16b5edfef6ff184148468d27a99fec6d0e600cc5da2060dbef62c2b0d607

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

#
class profile::base::windows (
  Boolean $enable_noop = false,
) {
  noop($enable_noop)

  include ::profile::base::windows::hardening

  stage { 'pre-run':
    before => Stage['main'],
  }

  class { '::chocolatey':
    stage => 'pre-run',
  }

  service { 'wuauserv':
    ensure => 'running',
    enable => true,
  }

  file { 'C:\app':
    ensure => 'directory',
  }

  $packages = [
    'atom',
    '7zip.install',
    'carbon',
  ]

  package { $packages:
    ensure   => 'latest',
  }

  package { 'putty.install':
    ensure          => present,
    install_options => '--allow-empty-checksums',
  }

  package { 'powershell':
    ensure          => present,
    install_options => '--ignore-package-exit-codes',
    require         => Service['wuauserv'],
    notify          => Reboot['immediately'],
  }

  reboot { 'immediately':
    apply   => 'immediately',
    timeout => '0',
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onceover-4.0.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/windows.pp
onceover-3.22.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/base/windows.pp