summaryrefslogtreecommitdiff
path: root/sysutils/puppetserver5/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/puppetserver5/files')
-rw-r--r--sysutils/puppetserver5/files/patch-ext__bin__puppetserver15
-rw-r--r--sysutils/puppetserver5/files/patch-ext__cli_defaults__cli-defaults.sh11
-rw-r--r--sysutils/puppetserver5/files/patch-ext__config__conf.d__global.conf9
-rw-r--r--sysutils/puppetserver5/files/patch-ext__config__conf.d__puppetserver.conf56
-rw-r--r--sysutils/puppetserver5/files/patch-ext__config__conf.d__webserver.conf9
-rw-r--r--sysutils/puppetserver5/files/patch-ext__config__logback.xml17
-rw-r--r--sysutils/puppetserver5/files/patch-ext__config__request-logging.xml15
-rw-r--r--sysutils/puppetserver5/files/pkg-message.in17
-rw-r--r--sysutils/puppetserver5/files/puppetserver.in95
9 files changed, 0 insertions, 244 deletions
diff --git a/sysutils/puppetserver5/files/patch-ext__bin__puppetserver b/sysutils/puppetserver5/files/patch-ext__bin__puppetserver
deleted file mode 100644
index ebd032d71b1a..000000000000
--- a/sysutils/puppetserver5/files/patch-ext__bin__puppetserver
+++ /dev/null
@@ -1,15 +0,0 @@
---- ext/bin/puppetserver.orig 2018-09-28 11:06:23 UTC
-+++ ext/bin/puppetserver
-@@ -15,6 +15,12 @@ elif [ `uname` == "OpenBSD" ] ; then
- USER="_puppet"
- INSTALL_DIR="/opt/puppetlabs/server/apps/puppetserver"
- CONFIG="/etc/puppetlabs/puppetserver/conf.d"
-+elif [ `uname` == "FreeBSD" ] ; then
-+ JAVA_BIN="%%JAVA%%"
-+ JAVA_ARGS="-Xms2g -Xmx2g -XX:MaxPermSize=256m"
-+ USER="puppet"
-+ INSTALL_DIR="%%DATADIR%%"
-+ CONFIG="%%ETCDIR%%/conf.d"
- else
- echo "You seem to be missing some important configuration files; could not find /etc/default/puppetserver or /etc/sysconfig/puppetserver" >&2
- exit 1
diff --git a/sysutils/puppetserver5/files/patch-ext__cli_defaults__cli-defaults.sh b/sysutils/puppetserver5/files/patch-ext__cli_defaults__cli-defaults.sh
deleted file mode 100644
index 186416323709..000000000000
--- a/sysutils/puppetserver5/files/patch-ext__cli_defaults__cli-defaults.sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- ext/cli_defaults/cli-defaults.sh.orig 2018-08-21 16:07:05 UTC
-+++ ext/cli_defaults/cli-defaults.sh
-@@ -1,6 +1,6 @@
--INSTALL_DIR="/opt/puppetlabs/server/apps/puppetserver"
-+INSTALL_DIR="%%DATADIR%%"
-
--JRUBY_JAR="${JRUBY_JAR:-${INSTALL_DIR}/jruby-1_7.jar}"
-+JRUBY_JAR="${JRUBY_JAR:-${INSTALL_DIR}/jruby-9k.jar}"
-
- if [ ! -e "$JRUBY_JAR" ]; then
- echo "Unable to find specified JRUBY_JAR: ${JRUBY_JAR}" 1>&2
diff --git a/sysutils/puppetserver5/files/patch-ext__config__conf.d__global.conf b/sysutils/puppetserver5/files/patch-ext__config__conf.d__global.conf
deleted file mode 100644
index a3c0983b8850..000000000000
--- a/sysutils/puppetserver5/files/patch-ext__config__conf.d__global.conf
+++ /dev/null
@@ -1,9 +0,0 @@
---- ext/config/conf.d/global.conf.orig 2018-08-21 16:07:02 UTC
-+++ ext/config/conf.d/global.conf
-@@ -1,5 +1,5 @@
- global: {
- # Path to logback logging configuration file; for more
- # info, see http://logback.qos.ch/manual/configuration.html
-- logging-config: /etc/puppetlabs/puppetserver/logback.xml
-+ logging-config: %%PREFIX%%/etc/puppetserver/logback.xml
- }
diff --git a/sysutils/puppetserver5/files/patch-ext__config__conf.d__puppetserver.conf b/sysutils/puppetserver5/files/patch-ext__config__conf.d__puppetserver.conf
deleted file mode 100644
index a1f1fc0ce540..000000000000
--- a/sysutils/puppetserver5/files/patch-ext__config__conf.d__puppetserver.conf
+++ /dev/null
@@ -1,56 +0,0 @@
---- ext/config/conf.d/puppetserver.conf.orig 2020-07-02 18:59:15 UTC
-+++ ext/config/conf.d/puppetserver.conf
-@@ -2,16 +2,21 @@
- jruby-puppet: {
- # Where the puppet-agent dependency places puppet, facter, etc...
- # Puppet server expects to load Puppet from this location
-- ruby-load-path: [/opt/puppetlabs/puppet/lib/ruby/vendor_ruby]
-+ ruby-load-path: [
-+ %%RUBY_SITELIBDIR%%,
-+ %%PREFIX%%/lib/ruby/vendor_ruby,
-+ %%PREFIX%%/lib/ruby/gems/%%RUBY_VER%%/gems/facter/lib,
-+ %%PREFIX%%/lib/ruby/gems/%%RUBY_VER%%/gems/hocon-1.3.1/lib,
-+ ]
-
- # This setting determines where JRuby will install gems. It is used for loading gems,
- # and also by the `puppetserver gem` command line tool.
-- gem-home: /opt/puppetlabs/server/data/puppetserver/jruby-gems
-+ gem-home: /var/puppet/server/data/puppetserver/jruby-gems
-
- # This setting defines the complete "GEM_PATH" for jruby. If set, it should include
- # the gem-home directory as well as any other directories that gems can be loaded
- # from (including the vendored gems directory for gems that ship with puppetserver)
-- gem-path: [${jruby-puppet.gem-home}, "/opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems", "/opt/puppetlabs/puppet/lib/ruby/vendor_gems"]
-+ gem-path: [${jruby-puppet.gem-home}, "/var/puppet/server/data/puppetserver/vendored-jruby-gems"]
-
- # PLEASE NOTE: Use caution when modifying the below settings. Modifying
- # these settings will change the value of the corresponding Puppet settings
-@@ -26,23 +31,23 @@ jruby-puppet: {
-
- # (optional) path to puppet conf dir; if not specified, will use
- # /etc/puppetlabs/puppet
-- master-conf-dir: /etc/puppetlabs/puppet
-+ master-conf-dir: %%PREFIX%%/etc/puppet
-
- # (optional) path to puppet code dir; if not specified, will use
- # /etc/puppetlabs/code
-- master-code-dir: /etc/puppetlabs/code
-+ master-code-dir: %%PREFIX%%/etc/puppet/code
-
- # (optional) path to puppet var dir; if not specified, will use
- # /opt/puppetlabs/server/data/puppetserver
-- master-var-dir: /opt/puppetlabs/server/data/puppetserver
-+ master-var-dir: /var/puppet/server/data/puppetserver
-
- # (optional) path to puppet run dir; if not specified, will use
- # /var/run/puppetlabs/puppetserver
-- master-run-dir: /var/run/puppetlabs/puppetserver
-+ master-run-dir: /var/run/puppetserver
-
- # (optional) path to puppet log dir; if not specified, will use
- # /var/log/puppetlabs/puppetserver
-- master-log-dir: /var/log/puppetlabs/puppetserver
-+ master-log-dir: /var/log/puppetserver
-
- # (optional) maximum number of JRuby instances to allow
- #max-active-instances: 1
diff --git a/sysutils/puppetserver5/files/patch-ext__config__conf.d__webserver.conf b/sysutils/puppetserver5/files/patch-ext__config__conf.d__webserver.conf
deleted file mode 100644
index 6559e2f094c1..000000000000
--- a/sysutils/puppetserver5/files/patch-ext__config__conf.d__webserver.conf
+++ /dev/null
@@ -1,9 +0,0 @@
---- ext/config/conf.d/webserver.conf.orig 2018-08-21 16:07:02 UTC
-+++ ext/config/conf.d/webserver.conf
-@@ -1,5 +1,5 @@
- webserver: {
-- access-log-config: /etc/puppetlabs/puppetserver/request-logging.xml
-+ access-log-config: %%PREFIX%%/etc/puppetserver/request-logging.xml
- client-auth: want
- ssl-host: 0.0.0.0
- ssl-port: 8140
diff --git a/sysutils/puppetserver5/files/patch-ext__config__logback.xml b/sysutils/puppetserver5/files/patch-ext__config__logback.xml
deleted file mode 100644
index 5e9bd158d834..000000000000
--- a/sysutils/puppetserver5/files/patch-ext__config__logback.xml
+++ /dev/null
@@ -1,17 +0,0 @@
---- ext/config/logback.xml.orig 2018-08-21 16:07:02 UTC
-+++ ext/config/logback.xml
-@@ -6,12 +6,11 @@
- </appender>
-
- <appender name="F1" class="ch.qos.logback.core.rolling.RollingFileAppender">
-- <!-- TODO: this path should not be hard-coded -->
-- <file>/var/log/puppetlabs/puppetserver/puppetserver.log</file>
-+ <file>/var/log/puppetserver/puppetserver.log</file>
- <append>true</append>
- <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
- <!-- rollover daily -->
-- <fileNamePattern>/var/log/puppetlabs/puppetserver/puppetserver-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
-+ <fileNamePattern>/var/log/puppetserver/puppetserver-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
- <!-- each file should be at most 200MB, keep 90 days worth of history, but at most 1GB total-->
- <maxFileSize>200MB</maxFileSize>
- <maxHistory>90</maxHistory>
diff --git a/sysutils/puppetserver5/files/patch-ext__config__request-logging.xml b/sysutils/puppetserver5/files/patch-ext__config__request-logging.xml
deleted file mode 100644
index 5899320bc72d..000000000000
--- a/sysutils/puppetserver5/files/patch-ext__config__request-logging.xml
+++ /dev/null
@@ -1,15 +0,0 @@
---- ext/config/request-logging.xml.orig 2018-08-21 16:07:02 UTC
-+++ ext/config/request-logging.xml
-@@ -1,10 +1,10 @@
- <configuration debug="false" scan="true">
- <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
-- <file>/var/log/puppetlabs/puppetserver/puppetserver-access.log</file>
-+ <file>/var/log/puppetserver/puppetserver-access.log</file>
- <append>true</append>
- <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
- <!-- rollover daily -->
-- <fileNamePattern>/var/log/puppetlabs/puppetserver/puppetserver-access-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
-+ <fileNamePattern>/var/log/puppetserver/puppetserver-access-%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
- <!-- each file should be at most 200MB, keep 90 days worth of history, but at most 1GB total-->
- <maxFileSize>200MB</maxFileSize>
- <maxHistory>90</maxHistory>
diff --git a/sysutils/puppetserver5/files/pkg-message.in b/sysutils/puppetserver5/files/pkg-message.in
deleted file mode 100644
index 0635f9786fce..000000000000
--- a/sysutils/puppetserver5/files/pkg-message.in
+++ /dev/null
@@ -1,17 +0,0 @@
-[
-{ type: install
- message: <<EOM
-Remember to run:
-
-sysrc puppetserver_enable=yes
-
-A note to users upgrading to 2.6 who have also modified bootstrap.cfg, please
-see the release notes for breaking changes in 2.5.
-
-https://docs.puppet.com/puppetserver/latest/release_notes.html#puppet-server-25
-
-The file bootstrap.cfg has been removed and ca configuration has been moved out
-to its own file in ca.cfg.
-EOM
-}
-]
diff --git a/sysutils/puppetserver5/files/puppetserver.in b/sysutils/puppetserver5/files/puppetserver.in
deleted file mode 100644
index 02887e6392e1..000000000000
--- a/sysutils/puppetserver5/files/puppetserver.in
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: puppetserver
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Configuration settings for puppetserver in /etc/rc.conf:
-#
-# puppetserver_enable (bool):
-# Set to "NO" by default.
-# Set it to "YES" to enable puppetserver
-#
-# puppetserver_args (str):
-# Extra arguments passed to start command
-#
-# puppetserver_java_home (str):
-# Set to "%%JAVA_HOME%%" by default.
-# Set the Java virtual machine to run puppetserver
-#
-# puppetserver_java_opts (str):
-# Set to "" by default.
-# Java VM args to use.
-#
-# puppetserver_user (str):
-# Set to "puppet" by default.
-# User to run puppetserver as.
-#
-# puppetserver_group (str):
-# Set to "puppet" by default.
-# Group for data file ownership.
-#
-# puppetserver_log_file (str):
-# Set to "/var/log/puppetserver/puppetserver.log" by default.
-# Log file location.
-#
-
-. /etc/rc.subr
-
-name="puppetserver"
-rcvar=puppetserver_enable
-
-load_rc_config "${name}"
-
-: ${puppetserver_enable="NO"}
-: ${puppetserver_args="--config %%PREFIX%%/etc/puppetserver/conf.d -b %%PREFIX%%/etc/puppetserver/services.d"}
-: ${puppetserver_java_home="%%JAVA_HOME%%"}
-: ${puppetserver_java_opts=""}
-: ${puppetserver_user="puppet"}
-: ${puppetserver_group="puppet"}
-: ${puppetserver_log_file="/var/log/puppetserver/puppetserver.log"}
-
-pidfile="/var/run/puppetserver/puppetserver.pid"
-command="/usr/sbin/daemon"
-java_cmd="${puppetserver_java_home}/bin/java"
-procname="${java_cmd}"
-command_args="-f -p ${pidfile} ${java_cmd} ${puppetserver_java_opts} -cp %%DATADIR%%/puppet-server-release.jar:%%DATADIR%%/jruby-9k.jar clojure.main -m puppetlabs.trapperkeeper.main ${puppetserver_args}"
-
-
-required_files="${java_cmd}"
-
-start_precmd="puppetserver_prestart"
-
-# An UTF-8 locale is required
-: LC_ALL=${LC_ALL:=C.UTF-8}
-case $LC_ALL in
- *.UTF-8)
- ;;
- *.*)
- LC_ALL="${LC_ALL%.*}.UTF-8"
- ;;
- *)
- LC_ALL=C.UTF-8
- ;;
-esac
-export LC_ALL
-
-puppetserver_prestart() {
- if [ ! -f "${puppetserver_log_file}" ]; then
- touch "${puppetserver_log_file}"
- chown "${puppetserver_user}:${puppetserver_group}" "${puppetserver_log_file}"
- chmod 640 "${puppetserver_log_file}"
- fi
- if [ ! -d "/var/run/puppetserver" ]; then
- install -d -o "${puppetserver_user}" -g "${puppetserver_group}" -m 750 "/var/run/puppetserver"
- fi
-
- chown -R "root:${puppetserver_group}" "%%PREFIX%%/etc/puppetserver/conf.d"
- chmod 0750 "%%PREFIX%%/etc/puppetserver/conf.d"
-
- chown "root:${puppetserver_group}" "%%PREFIX%%/etc/puppetserver/logback.xml"
- chmod 0640 "%%PREFIX%%/etc/puppetserver/logback.xml"
-}
-
-run_rc_command "$1"