Last active
August 29, 2015 14:07
-
-
Save ryanycoleman/89ae103d82c9f767a4a1 to your computer and use it in GitHub Desktop.
POODLE remediation for Puppet Enterprise 3.3.x based on instructions found on the Puppet Labs blog: http://puppetlabs.com/blog/impact-assessment-sslv3-vulnerability-poodle-attack
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
/opt/puppet/bin/puppet module install herculesteam-augeasproviders_apache | |
/opt/puppet/bin/puppet apply puppetmaster.pp | |
/opt/puppet/bin/puppet apply puppetdashboard.pp | |
/opt/puppet/bin/puppet apply jetty.pp |
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
ini_setting { 'jetty ssl-protocols': | |
ensure => present, | |
path => '/etc/puppetlabs/puppetdb/conf.d/jetty.ini', | |
section => 'jetty', | |
setting => 'ssl-protocols', | |
value => 'TLSv1, TLSv1.1, TLSv1.2', | |
notify => Service['pe-puppetdb'], | |
} | |
service { 'pe-puppetdb': | |
ensure => running, | |
} |
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
# MCO Remediation requires modification to included module. | |
# See http://puppetlabs.com/blog/impact-assessment-sslv3-vulnerability-poodle-attack for details. | |
# | |
# ActiveMQ/Mcollective | |
# Note: This is adding an explicit set of enabled protocols with these entries | |
# After this is applied, activemq.xml should contain: | |
# | |
if [ -f /opt/puppet/share/puppet/modules/pe_mcollective/templates/activemq.xml.erb ] ; then | |
sed -i -e 's|uri="<%= @openwire_activemq_protocol %>://0.0.0.0:61616"/|uri="<%= @openwire_activemq_protocol %>://0.0.0.0:61616?transport.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2"/|g' -e 's|uri="<%= @stomp_activemq_protocol %>://0.0.0.0:<%= @stomp_port %>"/|uri="<%= @stomp_activemq_protocol %>://0.0.0.0:<%= @stomp_port %>?transport.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2"/|g' /opt/puppet/share/puppet/modules/pe_mcollective/templates/activemq.xml.erb | |
fi |
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
apache_directive { 'puppetdashboard.conf': | |
ensure => present, | |
name => 'SSLProtocol', | |
args => ['ALL', '-SSLv2', '-SSLv3'], | |
target => '/etc/puppetlabs/httpd/conf.d/puppetdashboard.conf', | |
context => 'VirtualHost', | |
notify => Service['pe-httpd'], | |
} | |
service { 'pe-httpd': | |
ensure => running, | |
} |
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
apache_directive { 'puppetmaster.conf': | |
ensure => present, | |
name => 'SSLProtocol', | |
args => ['ALL', '-SSLv2', '-SSLv3'], | |
target => '/etc/puppetlabs/httpd/conf.d/puppetmaster.conf', | |
context => 'VirtualHost', | |
notify => Service['pe-httpd'], | |
} | |
service { 'pe-httpd': | |
ensure => running, | |
} |
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
# read each .pp file, then run with root on your Puppet Enterprise Master(s) | |
git clone https://gist.github.com/ryanycoleman/89ae103d82c9f767a4a1 | |
cd 89ae103d82c9f767a4a1 | |
sudo sh a_puppet.sh | |
sudo sh mco.sh | |
sudo /opt/puppet/bin/puppet agent -t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code is offered without warranty or support and is not provided by Puppet Labs.