Skip to content

Instantly share code, notes, and snippets.

@DBMoUK
Created January 16, 2015 17:52
Show Gist options
  • Save DBMoUK/98334bf6ea4194e7d705 to your computer and use it in GitHub Desktop.
Save DBMoUK/98334bf6ea4194e7d705 to your computer and use it in GitHub Desktop.
EnsureTLSv1
# === Authors
#
# David Bryant-Moore <[email protected]>
#
# === Copyright
#
# Copyright 2015 Puppetlabs.
#
class ensuretlsv1 {
$confpath='/etc/puppetlabs/httpd/conf.d'
File_line {
line => 'SSLProtocol TLSv1',
ensure => present,
match => "^\\s+SSLProtocol\\s+",
}
file_line {'ssl.conf':
path => "${confpath}/ssl.conf",
}
file_line {'puppetproxy.conf':
path => "${confpath}/puppetproxy.conf",
}
file_line {'puppetdashboard.conf':
path => "${confpath}/puppetdashboard.conf",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment