diff options
-rw-r--r-- | lib/aws_command.rb | 2 | ||||
-rw-r--r-- | lib/gce_command.rb | 2 | ||||
-rw-r--r-- | roles/docker_img_monitoring/files/monitoring_container/Dockerfile | 4 | ||||
-rw-r--r-- | roles/docker_img_proxy/files/proxy_container/Dockerfile | 5 | ||||
-rwxr-xr-x | roles/docker_img_proxy/files/proxy_container/start.sh | 6 | ||||
-rw-r--r-- | roles/docker_img_puppet/files/puppet_container/Dockerfile | 3 |
6 files changed, 14 insertions, 8 deletions
diff --git a/lib/aws_command.rb b/lib/aws_command.rb index 1067547e0..288a539a1 100644 --- a/lib/aws_command.rb +++ b/lib/aws_command.rb @@ -7,7 +7,7 @@ module OpenShift module Ops class AwsCommand < Thor # WARNING: we do not currently support environments with hyphens in the name - SUPPORTED_ENVS = %w(prod stg int tint kint test jint amint tdint) + SUPPORTED_ENVS = %w(prod stg int tint kint test jint amint tdint lint) option :type, :required => true, :enum => LaunchHelper.get_aws_host_types, :desc => 'The host type of the new instances.' diff --git a/lib/gce_command.rb b/lib/gce_command.rb index 384a90c0e..8be8fb357 100644 --- a/lib/gce_command.rb +++ b/lib/gce_command.rb @@ -10,7 +10,7 @@ module OpenShift module Ops class GceCommand < Thor # WARNING: we do not currently support environments with hyphens in the name - SUPPORTED_ENVS = %w(prod stg int tint kint test jint amint tdint) + SUPPORTED_ENVS = %w(prod stg int tint kint test jint amint tdint lint) option :type, :required => true, :enum => LaunchHelper.get_gce_host_types, :desc => 'The host type of the new instances.' diff --git a/roles/docker_img_monitoring/files/monitoring_container/Dockerfile b/roles/docker_img_monitoring/files/monitoring_container/Dockerfile index cd1651bc1..14e7f8650 100644 --- a/roles/docker_img_monitoring/files/monitoring_container/Dockerfile +++ b/roles/docker_img_monitoring/files/monitoring_container/Dockerfile @@ -12,10 +12,6 @@ RUN yum -y install ruby193-rubygem-zbxapi cronie zabbix-sender ruby openshift-or # Setup ctr-ipc dir RUN ln -s /shared/var/run/ctr-ipc /var/run/ctr-ipc -# TEMP WORKAROUND: until zbxapi rpm is updated to work with zbx 2.4 -RUN ruby -i -ane 'if $_ =~ /APIInfo.version/ ; puts " @major,@minor=2,0" ; else puts $_ ; end' /opt/rh/ruby193/root/usr/share/gems/gems/zbxapi-0.3.3/zbxapi.rb - - # Container specific files ADD start.rb /start.rb ADD register-with-zabbix.rb /register-with-zabbix.rb diff --git a/roles/docker_img_proxy/files/proxy_container/Dockerfile b/roles/docker_img_proxy/files/proxy_container/Dockerfile index 3887337ab..7b5378bb9 100644 --- a/roles/docker_img_proxy/files/proxy_container/Dockerfile +++ b/roles/docker_img_proxy/files/proxy_container/Dockerfile @@ -7,7 +7,7 @@ MAINTAINER Thomas Wiest <twiest@redhat.com> RUN yum -y update ; yum clean all # Container Specific RPMs -RUN yum -y install rhc-server-common httpd mod_security mod_ssl haproxy15 supervisor ruby ; yum clean all +RUN yum -y install rsyslog rhc-server-common httpd mod_security mod_ssl haproxy15 supervisor ruby ruby193-ruby openshift-origin-util-scl ; yum clean all # this needs to be on it's own line, otherwise the libra_user group isn't setup properly yet RUN yum -y install rhc-site-static ; yum clean all @@ -17,6 +17,9 @@ RUN yum -y install https://kojipkgs.fedoraproject.org//work/tasks/8506/7818506/s # Setup libra_user group with correct members RUN usermod -a -G libra_user apache +# Setup libra_ops group for compatibility with host puppet +RUN groupadd libra_ops + # Setup ctr-ipc dir RUN ln -s /shared/var/run/ctr-ipc /var/run/ctr-ipc diff --git a/roles/docker_img_proxy/files/proxy_container/start.sh b/roles/docker_img_proxy/files/proxy_container/start.sh index 93e398b3a..560e1c6be 100755 --- a/roles/docker_img_proxy/files/proxy_container/start.sh +++ b/roles/docker_img_proxy/files/proxy_container/start.sh @@ -1,7 +1,7 @@ #!/bin/bash echo _ -for shared_dir in /etc/haproxy /etc/pki /etc/httpd /var/lib/haproxy +for shared_dir in /etc/haproxy /etc/pki /etc/httpd /var/lib/haproxy /usr/local/bin /usr/local/lib do echo "Setting up /shared${shared_dir}..." rm -rf $shared_dir @@ -27,5 +27,9 @@ echo "Fixing symlink /etc/httpd/run..." ln -sf /var/run/httpd /shared/etc/httpd/run echo _ +echo "Starting rsyslog service..." +service rsyslog start +echo _ + echo "Starting supervisord" exec /usr/bin/supervisord diff --git a/roles/docker_img_puppet/files/puppet_container/Dockerfile b/roles/docker_img_puppet/files/puppet_container/Dockerfile index d5cdf1005..e16536c03 100644 --- a/roles/docker_img_puppet/files/puppet_container/Dockerfile +++ b/roles/docker_img_puppet/files/puppet_container/Dockerfile @@ -16,6 +16,9 @@ RUN rm /usr/sbin/lokkit ; ln -s /bin/true /usr/sbin/lokkit # this is needed so that we can run puppet without running the start script RUN mkdir -p /etc/haproxy +# Setup libra_ops group for compatibility with host puppet +RUN groupadd libra_ops + # END: These are to fake out puppet # Container specific files |