From d7a9e7f4f26ce7a587f555ef2ff9eaa0f314db85 Mon Sep 17 00:00:00 2001 From: denny Date: Wed, 13 Sep 2023 14:58:08 +0000 Subject: [PATCH] Update manifest.yml --- manifest.jps | 43 ------------------------------------------- manifest.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 43 deletions(-) delete mode 100644 manifest.jps create mode 100644 manifest.yml diff --git a/manifest.jps b/manifest.jps deleted file mode 100644 index 6413a9e..0000000 --- a/manifest.jps +++ /dev/null @@ -1,43 +0,0 @@ -type: update -name: Relay -id: relay -description: Relay is a Redis client for WordPress that improves Redis performance by two orders of magnitude -envName: ${settings.envName} - - -targetNodes: - nodeGroup: 'cp' - - -onInstall: - - cmd [cp]: |- - - curl -fsS http://example.com/script.sh | /bin/bash -s arg1 arg2 - - sed -i 's,^memory_limit.*$,memory_limit=256M,' /usr/local/lsws/lsphp/etc/php.ini - cd /usr/local/lsws/lsphp/etc/php.d - sed -i 's,^opcache.enable.*$,opcache.enable=1,' 10-opcache.ini - sed -i 's,^opcache.memory_consumption.*$,opcache.memory_consumption=256,' 10-opcache.ini - sed -i 's,^opcache.interned_strings_buffer.*$,opcache.interned_strings_buffer=64,' 10-opcache.ini - sed -i 's,^;extension=imagick.so.*$,extension=imagick.so,' 40-imagick.ini - sed -i 's,^;extension=gd.so.*$,extension=gd.so,' 20-gd.ini - sudo yum -y install epel-release - sudo yum -y localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm - sudo yum -y install ffmpeg ffmpeg-devel - user: root - - - api [cp]: environment.control.RestartNodes - - - cmd [cp]: |- - cd /var/www/webroot/ROOT - #disable litespeed object cache (not entire plugin) - wp plugin install redis-cache --activate - wp config set WP_REDIS_IGNORED_GROUPS "['comment','counts','plugins','themes','wc_session_id','learndash_reports','learndash_admin_profile','bp_messages','bp_messages_threads']" --raw - wp config set WP_REDIS_CLIENT 'relay' - wp config set WP_REDIS_SCHEME 'unix' - wp config set WP_REDIS_IGBINARY true --raw - wp config set WP_REDIS_PATH '/var/run/redis/redis.sock' - wp config set WP_REDIS_PORT 0 --raw - wp config set WP_REDIS_DATABASE 0 --raw - wp redis enable - wp cache flush \ No newline at end of file diff --git a/manifest.yml b/manifest.yml new file mode 100644 index 0000000..53d5d9c --- /dev/null +++ b/manifest.yml @@ -0,0 +1,18 @@ +type: update +name: Relay +id: relay +description: Relay is a Redis client for WordPress that improves Redis performance by two orders of magnitude +envName: ${settings.envName} + +targetNodes: + nodeGroup: 'cp' + +onInstall: + - cmd [cp]: |- + curl -fsS https://deploy-proxy.mightybox.io/addons/relay/raw/branch/main/relay-install.sh | /bin/bash -s + user: root + + - api [cp]: environment.control.RestartNodes + + - cmd [cp]: |- + curl -fsS https://deploy-proxy.mightybox.io/addons/relay/raw/branch/main/ocp-install.sh | /bin/bash -s \ No newline at end of file