bab9bb6b69
Create new directories: ceph config config-files filesystem kernel kernel/kernel-modules ldap logging strorage-drivers tools utilities virt Retire directories: connectivity core devtools support extended Delete two packages: tgt irqbalance Relocated packages: base/ dhcp initscripts libevent lighttpd linuxptp memcached net-snmp novnc ntp openssh pam procps sanlock shadow sudo systemd util-linux vim watchdog ceph/ python-cephclient config/ facter puppet-4.8.2 puppet-modules filesystem/ e2fsprogs nfs-utils nfscheck kernel/ kernel-std kernel-rt kernel/kernel-modules/ mlnx-ofa_kernel ldap/ nss-pam-ldapd openldap logging/ syslog-ng logrotate networking/ lldpd iproute mellanox python-ryu mlx4-config python/ python-2.7.5 python-django python-gunicorn python-setuptools python-smartpm python-voluptuous security/ shim-signed shim-unsigned tboot strorage-drivers/ python-3parclient python-lefthandclient virt/ cloud-init libvirt libvirt-python qemu tools/ storage-topology vm-topology utilities/ tis-extensions namespace-utils nova-utils update-motd Change-Id: I37ade764d873c701b35eac5881eb40412ba64a86 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
144 lines
5.7 KiB
Diff
144 lines
5.7 KiB
Diff
From 6170b01db0dea2b58fc0f150704205f7aac82ab4 Mon Sep 17 00:00:00 2001
|
|
From: Al Bailey <Al.Bailey@windriver.com>
|
|
Date: Thu, 2 Nov 2017 09:22:58 -0500
|
|
Subject: [PATCH 1/2] WRS: Patch1: 0001-Roll-up-TIS-patches.patch
|
|
|
|
---
|
|
lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb | 6 ++++++
|
|
manifests/config.pp | 6 +++---
|
|
manifests/init.pp | 5 +++--
|
|
manifests/install.pp | 4 +++-
|
|
manifests/install/rabbitmqadmin.pp | 3 ++-
|
|
manifests/params.pp | 1 +
|
|
6 files changed, 18 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb b/lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb
|
|
index 7e73295..438d9cc 100644
|
|
--- a/lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb
|
|
+++ b/lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb
|
|
@@ -95,6 +95,12 @@ Puppet::Type.type(:rabbitmq_policy).provide(:rabbitmqctl, :parent => Puppet::Pro
|
|
resource[:definition] ||= definition
|
|
resource[:pattern] ||= pattern
|
|
resource[:priority] ||= priority
|
|
+ # WRS. Values passed in from packstack are in string format. These need
|
|
+ # to be converted back to integer for certain parameters (e.g. max-length,
|
|
+ # expires)
|
|
+ if (resource[:definition].keys & ["max-length", "expires"]).any?
|
|
+ resource[:definition].each {|k,v| resource[:definition][k] = v.to_i}
|
|
+ end
|
|
# rabbitmq>=3.2.0
|
|
if Puppet::Util::Package.versioncmp(self.class.rabbitmq_version, '3.2.0') >= 0
|
|
rabbitmqctl('set_policy',
|
|
diff --git a/manifests/config.pp b/manifests/config.pp
|
|
index 6e1f7f5..66a8b08 100644
|
|
--- a/manifests/config.pp
|
|
+++ b/manifests/config.pp
|
|
@@ -116,7 +116,7 @@ class rabbitmq::config {
|
|
ensure => directory,
|
|
owner => '0',
|
|
group => '0',
|
|
- mode => '0644',
|
|
+ mode => '0640',
|
|
}
|
|
|
|
file { '/etc/rabbitmq/ssl':
|
|
@@ -132,7 +132,7 @@ class rabbitmq::config {
|
|
content => template($config),
|
|
owner => '0',
|
|
group => '0',
|
|
- mode => '0644',
|
|
+ mode => '0640',
|
|
notify => Class['rabbitmq::service'],
|
|
}
|
|
|
|
@@ -142,7 +142,7 @@ class rabbitmq::config {
|
|
content => template($env_config),
|
|
owner => '0',
|
|
group => '0',
|
|
- mode => '0644',
|
|
+ mode => '0640',
|
|
notify => Class['rabbitmq::service'],
|
|
}
|
|
|
|
diff --git a/manifests/init.pp b/manifests/init.pp
|
|
index 363c70d..3451599 100644
|
|
--- a/manifests/init.pp
|
|
+++ b/manifests/init.pp
|
|
@@ -11,6 +11,7 @@ class rabbitmq(
|
|
Hash $config_shovel_statics = $rabbitmq::params::config_shovel_statics,
|
|
String $default_user = $rabbitmq::params::default_user,
|
|
String $default_pass = $rabbitmq::params::default_pass,
|
|
+ String $default_host = $rabbitmq::params::default_host,
|
|
Boolean $delete_guest_user = $rabbitmq::params::delete_guest_user,
|
|
String $env_config = $rabbitmq::params::env_config,
|
|
Stdlib::Absolutepath $env_config_path = $rabbitmq::params::env_config_path,
|
|
@@ -186,7 +187,7 @@ class rabbitmq(
|
|
|
|
rabbitmq_plugin { 'rabbitmq_management':
|
|
ensure => present,
|
|
- require => Class['rabbitmq::install'],
|
|
+ require => [ File['/etc/rabbitmq'], Class['rabbitmq::install'] ],
|
|
notify => Class['rabbitmq::service'],
|
|
provider => 'rabbitmqplugins',
|
|
}
|
|
@@ -206,7 +207,7 @@ class rabbitmq(
|
|
if ($ldap_auth) {
|
|
rabbitmq_plugin { 'rabbitmq_auth_backend_ldap':
|
|
ensure => present,
|
|
- require => Class['rabbitmq::install'],
|
|
+ require => [ File['/etc/rabbitmq'], Class['rabbitmq::install'] ],
|
|
notify => Class['rabbitmq::service'],
|
|
}
|
|
}
|
|
diff --git a/manifests/install.pp b/manifests/install.pp
|
|
index 20ca090..45072c4 100644
|
|
--- a/manifests/install.pp
|
|
+++ b/manifests/install.pp
|
|
@@ -11,7 +11,9 @@ class rabbitmq::install {
|
|
package { 'rabbitmq-server':
|
|
ensure => $package_ensure,
|
|
name => $package_name,
|
|
- provider => $package_provider,
|
|
+ # DPENNEY: For some reason, package_provider is coming out as yum.
|
|
+ # Hardcode as rpm for now.
|
|
+ provider => 'rpm',
|
|
notify => Class['rabbitmq::service'],
|
|
require => $package_require,
|
|
}
|
|
diff --git a/manifests/install/rabbitmqadmin.pp b/manifests/install/rabbitmqadmin.pp
|
|
index e0ab7c7..9a3a8dd 100644
|
|
--- a/manifests/install/rabbitmqadmin.pp
|
|
+++ b/manifests/install/rabbitmqadmin.pp
|
|
@@ -11,6 +11,7 @@ class rabbitmq::install::rabbitmqadmin {
|
|
|
|
$default_user = $rabbitmq::default_user
|
|
$default_pass = $rabbitmq::default_pass
|
|
+ $default_host = $rabbitmq::default_host
|
|
$node_ip_address = $rabbitmq::node_ip_address
|
|
|
|
if $rabbitmq::node_ip_address == 'UNSET' {
|
|
@@ -27,7 +28,7 @@ class rabbitmq::install::rabbitmqadmin {
|
|
|
|
staging::file { 'rabbitmqadmin':
|
|
target => "${rabbitmq::rabbitmq_home}/rabbitmqadmin",
|
|
- source => "${protocol}://${default_user}:${default_pass}@${sanitized_ip}:${management_port}/cli/rabbitmqadmin",
|
|
+ source => "${protocol}://${default_user}:${default_pass}@${default_host}:${management_port}/cli/rabbitmqadmin",
|
|
curl_option => "-k ${curl_prefix} --retry 30 --retry-delay 6",
|
|
timeout => '180',
|
|
wget_option => '--no-proxy',
|
|
diff --git a/manifests/params.pp b/manifests/params.pp
|
|
index ffface9..da0d2b4 100644
|
|
--- a/manifests/params.pp
|
|
+++ b/manifests/params.pp
|
|
@@ -87,6 +87,7 @@ class rabbitmq::params {
|
|
$config_shovel_statics = {}
|
|
$default_user = 'guest'
|
|
$default_pass = 'guest'
|
|
+ $default_host = 'localhost'
|
|
$delete_guest_user = false
|
|
$env_config = 'rabbitmq/rabbitmq-env.conf.erb'
|
|
$env_config_path = '/etc/rabbitmq/rabbitmq-env.conf'
|
|
--
|
|
1.8.3.1
|
|
|