Merge branch 'master' into sudoman-mods
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 21 Dec 2015 16:51:10 +0000 (11:51 -0500)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 21 Dec 2015 16:51:10 +0000 (11:51 -0500)
class/50-host-classes
package_config/CIVICRM
package_config/GNUSOCIAL [new file with mode: 0644]
package_config/KOSA
package_config/MARIADB [new file with mode: 0644]
package_config/WORKSTATION
scripts/GNUSOCIAL/10_download_gnusocial.sh [new file with mode: 0644]
scripts/YOURLS/10_download_yourls.sh [new file with mode: 0644]

index 4fdb6bc..9d5257b 100755 (executable)
@@ -72,11 +72,14 @@ case $HOSTNAME in
        echo "FAIBASE WWW CIVICRM SYSADMIN VM MYSQLD"
        ;;
     gnusocial*)
-       echo "FAIBASE WWW SYSADMIN VM MYSQLD"
+       echo "FAIBASE WWW SYSADMIN VM MYSQLD GNUSOCIAL YOURLS"
        ;;
     nagios*)
        echo "FAIBASE SYSADMIN VM MYSQLD NAGIOS WWW"
        ;;
+    shopserver*)
+       echo "FAIBASE SYSADMIN KOSA MARIADB WWW"
+       ;;
     kdev*)
        echo "FAIBASE SYSADMIN KOSA VM MYSQLD PLONE WWW"
        ;;
index 47ab13e..a3b6a61 100644 (file)
@@ -2,3 +2,4 @@ PACKAGES aptitude CIVICRM
 php5
 libapache2-mod-php5
 wkhtmltopdf
+php-cas
\ No newline at end of file
diff --git a/package_config/GNUSOCIAL b/package_config/GNUSOCIAL
new file mode 100644 (file)
index 0000000..fa007e0
--- /dev/null
@@ -0,0 +1,21 @@
+PACKAGES aptitude GNUSOCIAL
+apache2
+mysql-server
+php5
+php5-mysql
+libapache2-mod-php5
+php-apc
+php5-intl
+vsftpd
+php5-cli
+php5-gd
+wget
+unzip
+curl
+mysql-server
+php5-cgi
+php5-curl
+php5-gd
+git
+ca-certificates
+openssl
index ca4bfa2..5efcd37 100644 (file)
@@ -1 +1,13 @@
 PACKAGES aptitude KOSA
+screen
+mlocate
+ncdu
+unzip
+openssl
+htop
+emacs24-nox
+wget
+apache2 
+php-cas 
+php5-mysql 
+php5-gd 
\ No newline at end of file
diff --git a/package_config/MARIADB b/package_config/MARIADB
new file mode 100644 (file)
index 0000000..ac60009
--- /dev/null
@@ -0,0 +1,2 @@
+PACKAGES aptitude MARIADB
+mariadb-server
\ No newline at end of file
index df8286a..f8a207b 100644 (file)
@@ -25,3 +25,4 @@ vim
 screen
 tmux
 mosh
+file-roller
diff --git a/scripts/GNUSOCIAL/10_download_gnusocial.sh b/scripts/GNUSOCIAL/10_download_gnusocial.sh
new file mode 100644 (file)
index 0000000..48a7bc7
--- /dev/null
@@ -0,0 +1,17 @@
+#! /bin/bash
+
+# Download gnusocial directly from their download source, as it is the recommended route and there is no repo
+if ! $ROOTCMD getent passwd gnusocial ; then
+    $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "gnusocial user" gnusocial
+fi
+
+if ! $ROOTCMD test -e /home/gnusocial/.ssh/id_rsa; then
+    $ROOTCMD echo | $ROOTCMD sudo -u gnusocial ssh-keygen -N ''
+fi
+
+if ! $ROOTCMD echo | cd /home/gnusocial/ 
+    mkdir /var/www/statusnet/
+    git clone https://git.gnu.io/gnu/gnu-social.git /home/gnusocial/gnu-social; then
+    rm -rf /home/gnusocial/gnu-social/.git
+    mv /home/gnusocial/gnu-social/* /var/www/statusnet/
+fi
diff --git a/scripts/YOURLS/10_download_yourls.sh b/scripts/YOURLS/10_download_yourls.sh
new file mode 100644 (file)
index 0000000..eae43f8
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/bash
+
+YOURLS_VERS='1.7.1'
+
+# Download yourls and install; we're going to be doing this under the gnusocial user.
+if ! $ROOTCMD getent passwd gnusocial ; then
+    $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "gnusocial user" gnusocial
+fi
+
+if ! $ROOTCMD test -e /home/gnusocial/.ssh/id_rsa; then
+    $ROOTCMD echo | $ROOTCMD sudo -u gnusocial ssh-keygen -N ''
+fi
+
+if ! $ROOTCMD echo | cd /home/gnusocial/ 
+    mkdir /var/www/yourls
+    curl https://codeload.github.com/YOURLS/YOURLS/tar.gz/$YOURLS_VERS -o /home/gnusocial/yourls.tar.gz; then
+    tar xf /home/gnusocial/yourls.tar.gz -C /home/gnusocial/
+    mv /home/gnusocial/YOURLS-$YOURLS_VERS/* /var/www/yourls/
+fi