Last active
October 24, 2016 06:39
-
-
Save darkn3rd/b3997f62d1a5e8ecce1dda23492bd2d1 to your computer and use it in GitHub Desktop.
Awesome Customer Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@workstation:~/chef-repo$ knife bootstrap ${ADDRESS} -V --sudo --ssh-user ${USER} --node-name ${NODE_NAME} --run-list ${RUN_LIST} | |
INFO: Using configuration from /home/vagrant/chef-repo/.chef/knife.rb | |
Doing old-style registration with the validation key at /home/vagrant/chef-repo/.chef/vagrantdev-validator.pem... | |
Delete your validation key in order to use your user credentials instead | |
Connecting to node | |
node -----> Existing Chef installation detected | |
node Starting the first Chef Client run... | |
node Starting Chef Client, version 12.5.1 | |
node resolving cookbooks for run list: ["awesome_customers_ubuntu"] | |
node Synchronizing Cookbooks: | |
node - awesome_customers_ubuntu (0.1.0) | |
node - apt (4.0.2) | |
node - chef-sugar (3.4.0) | |
node - compat_resource (12.16.1) | |
node - firewall (2.5.2) | |
node - httpd (0.4.4) | |
node - mysql (7.2.0) | |
node - yum-mysql-community (1.0.0) | |
node - yum (4.1.0) | |
node - smf (2.2.8) | |
node - rbac (1.0.3) | |
node - mysql2_chef_gem (1.1.0) | |
node - seven_zip (2.0.2) | |
node - build-essential (7.0.1) | |
node - windows (2.0.2) | |
node - mingw (1.2.4) | |
node - mariadb (0.3.1) | |
node - yum-epel (1.0.2) | |
node - database (6.0.0) | |
node - openssl (6.0.0) | |
node - postgresql (3.4.16) | |
node Compiling Cookbooks... | |
node Recipe: chef-sugar::default | |
node * chef_gem[chef-sugar] action install | |
node - install version 3.4.0 of package chef-sugar | |
node Converging 32 resources | |
node Recipe: apt::default | |
node * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
node * apt_update[periodic] action periodic | |
node * directory[/var/lib/apt/periodic] action create (up to date) | |
node * directory[/etc/apt/apt.conf.d] action create (up to date) | |
node * file[/etc/apt/apt.conf.d/15update-stamp] action create_if_missing (up to date) | |
node - update new lists of packages | |
node * execute[apt-get update] action nothing (skipped due to action :nothing) | |
node * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
node * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
node * directory[/var/cache/local] action create | |
node - create new directory /var/cache/local | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/var/cache/local/preseeding] action create | |
node - create new directory /var/cache/local/preseeding | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * template[/etc/apt/apt.conf.d/10recommends] action create | |
node - create new file /etc/apt/apt.conf.d/10recommends | |
node - update content in file /etc/apt/apt.conf.d/10recommends from none to f41e1d | |
node --- /etc/apt/apt.conf.d/10recommends 2016-10-24 06:29:50.334478700 +0000 | |
node +++ /etc/apt/apt.conf.d/.10recommends20161024-1344-l5m5wx 2016-10-24 06:29:50.334478700 +0000 | |
node @@ -1 +1,4 @@ | |
node +# Managed by Chef | |
node +APT::Install-Recommends "1"; | |
node +APT::Install-Suggests "0"; | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * apt_package[apt-transport-https] action install (up to date) | |
node Recipe: chef-sugar::default | |
node * chef_gem[chef-sugar] action install (up to date) | |
node Recipe: firewall::default | |
node * firewall[default] action install | |
node - install ufw, create template for /etc/default | |
node * apt_package[ufw] action install (up to date) | |
node * template[/etc/default/ufw] action create | |
node - update content in file /etc/default/ufw from e65377 to 1a8632 | |
node --- /etc/default/ufw 2014-02-28 21:50:59.000000000 +0000 | |
node +++ /etc/default/.ufw20161024-1344-1dtgjrw 2016-10-24 06:29:50.430478699 +0000 | |
node @@ -1,46 +1,15 @@ | |
node # /etc/default/ufw | |
node -# | |
node +# This file is managed by Chef. Do not edit. | |
node | |
node -# Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback | |
node -# accepted). You will need to 'disable' and then 'enable' the firewall for | |
node -# the changes to take affect. | |
node IPV6=yes | |
node +MANAGE_BUILTINS=no | |
node | |
node -# Set the default input policy to ACCEPT, DROP, or REJECT. Please note that if | |
node -# you change this you will most likely want to adjust your rules. | |
node DEFAULT_INPUT_POLICY="DROP" | |
node - | |
node -# Set the default output policy to ACCEPT, DROP, or REJECT. Please note that if | |
node -# you change this you will most likely want to adjust your rules. | |
node DEFAULT_OUTPUT_POLICY="ACCEPT" | |
node - | |
node -# Set the default forward policy to ACCEPT, DROP or REJECT. Please note that | |
node -# if you change this you will most likely want to adjust your rules | |
node DEFAULT_FORWARD_POLICY="DROP" | |
node - | |
node -# Set the default application policy to ACCEPT, DROP, REJECT or SKIP. Please | |
node -# note that setting this to ACCEPT may be a security risk. See 'man ufw' for | |
node -# details | |
node DEFAULT_APPLICATION_POLICY="SKIP" | |
node | |
node -# By default, ufw only touches its own chains. Set this to 'yes' to have ufw | |
node -# manage the built-in chains too. Warning: setting this to 'yes' will break | |
node -# non-ufw managed firewall rules | |
node -MANAGE_BUILTINS=no | |
node +IPT_SYSCTL="/etc/ufw/sysctl.conf" | |
node | |
node -# | |
node -# IPT backend | |
node -# | |
node -# only enable if using iptables backend | |
node -IPT_SYSCTL=/etc/ufw/sysctl.conf | |
node - | |
node -# Extra connection tracking modules to load. Complete list can be found in | |
node -# net/netfilter/Kconfig of your kernel source. Some common modules: | |
node -# nf_conntrack_irc, nf_nat_irc: DCC (Direct Client to Client) support | |
node -# nf_conntrack_netbios_ns: NetBIOS (samba) client support | |
node -# nf_conntrack_pptp, nf_nat_pptp: PPTP over stateful firewall/NAT | |
node -# nf_conntrack_ftp, nf_nat_ftp: active FTP support | |
node -# nf_conntrack_tftp, nf_nat_tftp: TFTP support (server side) | |
node IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_netbios_ns" | |
node - | |
node * file[create empty /etc/default/ufw-chef.rules] action create | |
node - create new file /etc/default/ufw-chef.rules | |
node - update content in file /etc/default/ufw-chef.rules from none to fa85ee | |
node --- /etc/default/ufw-chef.rules 2016-10-24 06:29:50.446478699 +0000 | |
node +++ /etc/default/.ufw-chef.rules20161024-1344-1oetp0l 2016-10-24 06:29:50.446478699 +0000 | |
node @@ -1 +1,2 @@ | |
node +# created by chef to allow service to start | |
node * firewall_rule[allow world to ssh] action create | |
node | |
node * firewall_rule[allow world to winrm] action create (skipped due to only_if) | |
node * firewall_rule[allow world to mosh] action create (skipped due to only_if) | |
node * firewall_rule[established] action create (skipped due to only_if) | |
node * firewall_rule[ipv6_icmp] action create (skipped due to only_if) | |
node Recipe: awesome_customers_ubuntu::firewall | |
node * firewall_rule[open ports 80] action create | |
node | |
node Recipe: awesome_customers_ubuntu::web_user | |
node * group[web_admin] action create | |
node - create web_admin | |
node * user[web_admin] action create | |
node - create user web_admin | |
node Recipe: awesome_customers_ubuntu::web | |
node * httpd_service_debian_sysvinit[customers] action create | |
node * apt_package[apache2] action install | |
node - install version 2.4.7-1ubuntu4.13 of package apache2 | |
node * service[apache2] action stop | |
node - stop service service[apache2] | |
node * service[apache2] action disable | |
node - disable service service[apache2] | |
node * directory[/var/cache/apache2-customers] action create | |
node - create new directory /var/cache/apache2-customers | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/var/log/apache2-customers] action create | |
node - create new directory /var/log/apache2-customers | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'adm' | |
node * directory[/var/run/apache2] action create | |
node - change group from 'root' to 'adm' | |
node * directory[/etc/apache2-customers] action create | |
node - create new directory /etc/apache2-customers | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/etc/apache2-customers/conf-available] action create | |
node - create new directory /etc/apache2-customers/conf-available | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/etc/apache2-customers/conf-enabled] action create | |
node - create new directory /etc/apache2-customers/conf-enabled | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/var/lock/apache2-customers] action create | |
node - create new directory /var/lock/apache2-customers | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'www-data' | |
node - change group from '' to 'www-data' | |
node * directory[/etc/apache2-customers/mods-available] action create | |
node - create new directory /etc/apache2-customers/mods-available | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/etc/apache2-customers/mods-enabled] action create | |
node - create new directory /etc/apache2-customers/mods-enabled | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/etc/apache2-customers/sites-available] action create | |
node - create new directory /etc/apache2-customers/sites-available | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/etc/apache2-customers/sites-enabled] action create | |
node - create new directory /etc/apache2-customers/sites-enabled | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * template[/etc/apache2-customers/envvars] action create | |
node - create new file /etc/apache2-customers/envvars | |
node - update content in file /etc/apache2-customers/envvars from none to 2bd29a | |
node --- /etc/apache2-customers/envvars 2016-10-24 06:29:58.338478644 +0000 | |
node +++ /etc/apache2-customers/.envvars20161024-1344-1e2t0d9 2016-10-24 06:29:58.338478644 +0000 | |
node @@ -1 +1,15 @@ | |
node +unset HOME | |
node +if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then | |
node + SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}" | |
node +else | |
node + SUFFIX= | |
node +fi | |
node +export APACHE_RUN_USER=www-data | |
node +export APACHE_RUN_GROUP=www-data | |
node +export APACHE_PID_FILE=/var/run/apache2/apache2-customers.pid | |
node +export APACHE_RUN_DIR=/var/run/apache2 | |
node +export APACHE_LOCK_DIR=/var/lock/apache2-customers | |
node +export APACHE_LOG_DIR=/var/log/apache2-customers | |
node +export LANG=C | |
node +export LANG | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * template[/usr/sbin/a2enmod] action create | |
node - update content in file /usr/sbin/a2enmod from 838751 to 84536d | |
node --- /usr/sbin/a2enmod 2016-04-20 14:20:56.000000000 +0000 | |
node +++ /usr/sbin/.a2enmod20161024-1344-91vvsd 2016-10-24 06:29:58.354478644 +0000 | |
node @@ -177,6 +177,11 @@ | |
node # handle module dependencies | |
node if ( $obj eq 'module' ) { | |
node if ( $act eq 'enable' ) { | |
node + if ( $acton eq 'mpm_itk' ) { | |
node + warning( "MPM_ITK is a third party module that is not part " | |
node + . "of the official Apache HTTPD. It has seen less " | |
node + . "testing than the official MPM modules." ); | |
node + } | |
node my @depends = get_deps("$availdir/$acton.load"); | |
node do_deps( $acton, @depends ) or return 0; | |
node | |
node * link[/usr/sbin/a2enmod_name] action create | |
node - create symlink at /usr/sbin/a2enmod_name to /usr/sbin/a2enmod | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/usr/sbin/a2dismod_name] action create | |
node - create symlink at /usr/sbin/a2dismod_name to /usr/sbin/a2enmod | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/usr/sbin/a2ensite_name] action create | |
node - create symlink at /usr/sbin/a2ensite_name to /usr/sbin/a2enmod | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/usr/sbin/a2dissite_name] action create | |
node - create symlink at /usr/sbin/a2dissite_name to /usr/sbin/a2enmod | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * template[/etc/apache2-customers/mime.types] action create | |
node - create new file /etc/apache2-customers/mime.types | |
node - update content in file /etc/apache2-customers/mime.types from none to 589e1f | |
node --- /etc/apache2-customers/mime.types 2016-10-24 06:29:58.450478644 +0000 | |
node +++ /etc/apache2-customers/.mime.types20161024-1344-13a3jl0 2016-10-24 06:29:58.450478644 +0000 | |
node @@ -1 +1,936 @@ | |
node +# Magic data for mod_mime_magic (originally for file(1) command) | |
node +# | |
node +# The format is 4-5 columns: | |
node +# Column #1: byte number to begin checking from, ">" indicates continuation | |
node +# Column #2: type of data to match | |
node +# Column #3: contents of data to match | |
node +# Column #4: MIME type of result | |
node +# Column #5: MIME encoding of result (optional) | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# Localstuff: file(1) magic for locally observed files | |
node +# Add any locally observed files here. | |
node + | |
node +# Real Audio (Magic .ra\0375) | |
node +0 belong 0x2e7261fd audio/x-pn-realaudio | |
node +0 string .RMF application/vnd.rn-realmedia | |
node + | |
node +#video/x-pn-realvideo | |
node +#video/vnd.rn-realvideo | |
node +#application/vnd.rn-realmedia | |
node +# sigh, there are many mimes for that but the above are the most common. | |
node + | |
node +# Taken from magic, converted to magic.mime | |
node +# mime types according to http://www.geocities.com/nevilo/mod.htm: | |
node +# audio/it .it | |
node +# audio/x-zipped-it .itz | |
node +# audio/xm fasttracker modules | |
node +# audio/x-s3m screamtracker modules | |
node +# audio/s3m screamtracker modules | |
node +# audio/x-zipped-mod mdz | |
node +# audio/mod mod | |
node +# audio/x-mod All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z) | |
node + | |
node +# Taken from loader code from mikmod version 2.14 | |
node +# by Steve McIntyre (stevem@chiark.greenend.org.uk) | |
node +# <doj@cubic.org> added title printing on 2003-06-24 | |
node +0 string MAS_UTrack_V00 | |
node +>14 string >/0 audio/x-mod | |
node +#audio/x-tracker-module | |
node + | |
node +#0 string UN05 MikMod UNI format module sound data | |
node + | |
node +0 string Extended\ Module: audio/x-mod | |
node +#audio/x-tracker-module | |
node +##>17 string >\0 Title: "%s" | |
node + | |
node +21 string/c \!SCREAM! audio/x-mod | |
node +#audio/x-screamtracker-module | |
node +21 string BMOD2STM audio/x-mod | |
node +#audio/x-screamtracker-module | |
node +1080 string M.K. audio/x-mod | |
node +#audio/x-protracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string M!K! audio/x-mod | |
node +#audio/x-protracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string FLT4 audio/x-mod | |
node +#audio/x-startracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string FLT8 audio/x-mod | |
node +#audio/x-startracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string 4CHN audio/x-mod | |
node +#audio/x-fasttracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string 6CHN audio/x-mod | |
node +#audio/x-fasttracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string 8CHN audio/x-mod | |
node +#audio/x-fasttracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string CD81 audio/x-mod | |
node +#audio/x-oktalyzer-tracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string OKTA audio/x-mod | |
node +#audio/x-oktalyzer-tracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +# Not good enough. | |
node +#1082 string CH | |
node +#>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data | |
node +1080 string 16CN audio/x-mod | |
node +#audio/x-taketracker-module | |
node +#>0 string >\0 Title: "%s" | |
node +1080 string 32CN audio/x-mod | |
node +#audio/x-taketracker-module | |
node +#>0 string >\0 Title: "%s" | |
node + | |
node +# Impuse tracker module (it) | |
node +0 string IMPM audio/x-mod | |
node +#>4 string >\0 "%s" | |
node +#>40 leshort !0 compatible w/ITv%x | |
node +#>42 leshort !0 created w/ITv%x | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# end local stuff | |
node +#------------------------------------------------------------------------------ | |
node + | |
node +# xml based formats! | |
node + | |
node +# svg | |
node + | |
node +0 string \<?xml | |
node +# text/xml | |
node +>38 string \<\!DOCTYPE\040svg image/svg+xml | |
node + | |
node + | |
node +# xml | |
node +0 string \<?xml text/xml | |
node + | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# Java | |
node + | |
node +0 short 0xcafe | |
node +>2 short 0xbabe application/java | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# audio: file(1) magic for sound formats | |
node +# | |
node +# from Jan Nicolai Langfeldt <janl@ifi.uio.no>, | |
node +# | |
node + | |
node +# Sun/NeXT audio data | |
node +0 string .snd | |
node +>12 belong 1 audio/basic | |
node +>12 belong 2 audio/basic | |
node +>12 belong 3 audio/basic | |
node +>12 belong 4 audio/basic | |
node +>12 belong 5 audio/basic | |
node +>12 belong 6 audio/basic | |
node +>12 belong 7 audio/basic | |
node + | |
node +>12 belong 23 audio/x-adpcm | |
node + | |
node +# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format | |
node +# that uses little-endian encoding and has a different magic number | |
node +# (0x0064732E in little-endian encoding). | |
node +0 lelong 0x0064732E | |
node +>12 lelong 1 audio/x-dec-basic | |
node +>12 lelong 2 audio/x-dec-basic | |
node +>12 lelong 3 audio/x-dec-basic | |
node +>12 lelong 4 audio/x-dec-basic | |
node +>12 lelong 5 audio/x-dec-basic | |
node +>12 lelong 6 audio/x-dec-basic | |
node +>12 lelong 7 audio/x-dec-basic | |
node +# compressed (G.721 ADPCM) | |
node +>12 lelong 23 audio/x-dec-adpcm | |
node + | |
node +# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM" | |
node +# AIFF audio data | |
node +8 string AIFF audio/x-aiff | |
node +# AIFF-C audio data | |
node +8 string AIFC audio/x-aiff | |
node +# IFF/8SVX audio data | |
node +8 string 8SVX audio/x-aiff | |
node + | |
node + | |
node + | |
node +# Creative Labs AUDIO stuff | |
node +# Standard MIDI data | |
node +0 string MThd audio/unknown | |
node +#>9 byte >0 (format %d) | |
node +#>11 byte >1 using %d channels | |
node +# Creative Music (CMF) data | |
node +0 string CTMF audio/unknown | |
node +# SoundBlaster instrument data | |
node +0 string SBI audio/unknown | |
node +# Creative Labs voice data | |
node +0 string Creative\ Voice\ File audio/unknown | |
node +## is this next line right? it came this way... | |
node +#>19 byte 0x1A | |
node +#>23 byte >0 - version %d | |
node +#>22 byte >0 \b.%d | |
node + | |
node +# [GRR 950115: is this also Creative Labs? Guessing that first line | |
node +# should be string instead of unknown-endian long...] | |
node +#0 long 0x4e54524b MultiTrack sound data | |
node +#0 string NTRK MultiTrack sound data | |
node +#>4 long x - version %ld | |
node + | |
node +# Microsoft WAVE format (*.wav) | |
node +# [GRR 950115: probably all of the shorts and longs should be leshort/lelong] | |
node +# Microsoft RIFF | |
node +0 string RIFF | |
node +# - WAVE format | |
node +>8 string WAVE audio/x-wav | |
node +>8 string/B AVI video/x-msvideo | |
node +# | |
node +>8 string CDRA image/x-coreldraw | |
node + | |
node +# AAC (aka MPEG-2 NBC) | |
node +0 beshort&0xfff6 0xfff0 audio/X-HX-AAC-ADTS | |
node +0 string ADIF audio/X-HX-AAC-ADIF | |
node +0 beshort&0xffe0 0x56e0 audio/MP4A-LATM | |
node +0 beshort 0x4De1 audio/MP4A-LATM | |
node + | |
node +# MPEG Layer 3 sound files | |
node +0 beshort&0xfffe =0xfffa audio/mpeg | |
node +#MP3 with ID3 tag | |
node +0 string ID3 audio/mpeg | |
node +# Ogg/Vorbis | |
node +0 string OggS application/ogg | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# c-lang: file(1) magic for C programs or various scripts | |
node +# | |
node + | |
node +# XPM icons (Greg Roelofs, newt@uchicago.edu) | |
node +# ideally should go into "images", but entries below would tag XPM as C source | |
node +0 string /*\ XPM image/x-xpmi 7bit | |
node + | |
node +# 3DS (3d Studio files) | |
node +#16 beshort 0x3d3d image/x-3ds | |
node + | |
node +# this first will upset you if you're a PL/1 shop... (are there any left?) | |
node +# in which case rm it; ascmagic will catch real C programs | |
node +# C or REXX program text | |
node +#0 string /* text/x-c | |
node +# C++ program text | |
node +#0 string // text/x-c++ | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# commands: file(1) magic for various shells and interpreters | |
node +# | |
node +#0 string :\ shell archive or commands for antique kernel text | |
node +0 string #!/bin/sh application/x-shellscript | |
node +0 string #!\ /bin/sh application/x-shellscript | |
node +0 string #!/bin/csh application/x-shellscript | |
node +0 string #!\ /bin/csh application/x-shellscript | |
node +# korn shell magic, sent by George Wu, gwu@clyde.att.com | |
node +0 string #!/bin/ksh application/x-shellscript | |
node +0 string #!\ /bin/ksh application/x-shellscript | |
node +0 string #!/bin/tcsh application/x-shellscript | |
node +0 string #!\ /bin/tcsh application/x-shellscript | |
node +0 string #!/usr/local/tcsh application/x-shellscript | |
node +0 string #!\ /usr/local/tcsh application/x-shellscript | |
node +0 string #!/usr/local/bin/tcsh application/x-shellscript | |
node +0 string #!\ /usr/local/bin/tcsh application/x-shellscript | |
node +# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) | |
node +0 string #!/bin/bash application/x-shellscript | |
node +0 string #!\ /bin/bash application/x-shellscript | |
node +0 string #!/usr/local/bin/bash application/x-shellscript | |
node +0 string #!\ /usr/local/bin/bash application/x-shellscript | |
node + | |
node +# | |
node +# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) | |
node +0 string #!/bin/zsh application/x-shellscript | |
node +0 string #!/usr/bin/zsh application/x-shellscript | |
node +0 string #!/usr/local/bin/zsh application/x-shellscript | |
node +0 string #!\ /usr/local/bin/zsh application/x-shellscript | |
node +0 string #!/usr/local/bin/ash application/x-shellscript | |
node +0 string #!\ /usr/local/bin/ash application/x-shellscript | |
node +#0 string #!/usr/local/bin/ae Neil Brown's ae | |
node +#0 string #!\ /usr/local/bin/ae Neil Brown's ae | |
node +0 string #!/bin/nawk application/x-nawk | |
node +0 string #!\ /bin/nawk application/x-nawk | |
node +0 string #!/usr/bin/nawk application/x-nawk | |
node +0 string #!\ /usr/bin/nawk application/x-nawk | |
node +0 string #!/usr/local/bin/nawk application/x-nawk | |
node +0 string #!\ /usr/local/bin/nawk application/x-nawk | |
node +0 string #!/bin/gawk application/x-gawk | |
node +0 string #!\ /bin/gawk application/x-gawk | |
node +0 string #!/usr/bin/gawk application/x-gawk | |
node +0 string #!\ /usr/bin/gawk application/x-gawk | |
node +0 string #!/usr/local/bin/gawk application/x-gawk | |
node +0 string #!\ /usr/local/bin/gawk application/x-gawk | |
node +# | |
node +0 string #!/bin/awk application/x-awk | |
node +0 string #!\ /bin/awk application/x-awk | |
node +0 string #!/usr/bin/awk application/x-awk | |
node +0 string #!\ /usr/bin/awk application/x-awk | |
node +# update to distinguish from *.vcf files by Joerg Jenderek: joerg dot jenderek at web dot de | |
node +#0 regex BEGIN[[:space:]]*[{] application/x-awk | |
node + | |
node +# For Larry Wall's perl language. The ``eval'' line recognizes an | |
node +# outrageously clever hack for USG systems. | |
node +# Keith Waclena <keith@cerberus.uchicago.edu> | |
node +0 string #!/bin/perl application/x-perl | |
node +0 string #!\ /bin/perl application/x-perl | |
node +0 string eval\ "exec\ /bin/perl application/x-perl | |
node +0 string #!/usr/bin/perl application/x-perl | |
node +0 string #!\ /usr/bin/perl application/x-perl | |
node +0 string eval\ "exec\ /usr/bin/perl application/x-perl | |
node +0 string #!/usr/local/bin/perl application/x-perl | |
node +0 string #!\ /usr/local/bin/perl application/x-perl | |
node +0 string eval\ "exec\ /usr/local/bin/perl application/x-perl | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# compress: file(1) magic for pure-compression formats (no archives) | |
node +# | |
node +# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc. | |
node +# | |
node +# Formats for various forms of compressed data | |
node +# Formats for "compress" proper have been moved into "compress.c", | |
node +# because it tries to uncompress it to figure out what's inside. | |
node + | |
node +# standard unix compress | |
node +#0 string \037\235 application/x-compress | |
node + | |
node +# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver) | |
node +#0 string \037\213 application/x-gzip | |
node + | |
node +0 string PK\003\004 application/x-zip | |
node + | |
node +# RAR archiver (Greg Roelofs, newt@uchicago.edu) | |
node +0 string Rar! application/x-rar | |
node + | |
node +# According to gzip.h, this is the correct byte order for packed data. | |
node +0 string \037\036 application/octet-stream | |
node +# | |
node +# This magic number is byte-order-independent. | |
node +# | |
node +0 short 017437 application/octet-stream | |
node + | |
node +# XXX - why *two* entries for "compacted data", one of which is | |
node +# byte-order independent, and one of which is byte-order dependent? | |
node +# | |
node +# compacted data | |
node +0 short 0x1fff application/octet-stream | |
node +0 string \377\037 application/octet-stream | |
node +# huf output | |
node +0 short 0145405 application/octet-stream | |
node + | |
node +# Squeeze and Crunch... | |
node +# These numbers were gleaned from the Unix versions of the programs to | |
node +# handle these formats. Note that I can only uncrunch, not crunch, and | |
node +# I didn't have a crunched file handy, so the crunch number is untested. | |
node +# Keith Waclena <keith@cerberus.uchicago.edu> | |
node +#0 leshort 0x76FF squeezed data (CP/M, DOS) | |
node +#0 leshort 0x76FE crunched data (CP/M, DOS) | |
node + | |
node +# Freeze | |
node +#0 string \037\237 Frozen file 2.1 | |
node +#0 string \037\236 Frozen file 1.0 (or gzip 0.5) | |
node + | |
node +# lzh? | |
node +#0 string \037\240 LZH compressed data | |
node + | |
node +257 string ustar\0 application/x-tar posix | |
node +257 string ustar\040\040\0 application/x-tar gnu | |
node + | |
node +0 short 070707 application/x-cpio | |
node +0 short 0143561 application/x-cpio swapped | |
node + | |
node +0 string =<ar> application/x-archive | |
node +0 string \!<arch> application/x-archive | |
node +>8 string debian application/x-debian-package | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# | |
node +# RPM: file(1) magic for Red Hat Packages Erik Troan (ewt@redhat.com) | |
node +# | |
node +0 beshort 0xedab | |
node +>2 beshort 0xeedb application/x-rpm | |
node + | |
node +0 lelong&0x8080ffff 0x0000081a application/x-arc lzw | |
node +0 lelong&0x8080ffff 0x0000091a application/x-arc squashed | |
node +0 lelong&0x8080ffff 0x0000021a application/x-arc uncompressed | |
node +0 lelong&0x8080ffff 0x0000031a application/x-arc packed | |
node +0 lelong&0x8080ffff 0x0000041a application/x-arc squeezed | |
node +0 lelong&0x8080ffff 0x0000061a application/x-arc crunched | |
node + | |
node +0 leshort 0xea60 application/x-arj | |
node + | |
node +# LHARC/LHA archiver (Greg Roelofs, newt@uchicago.edu) | |
node +2 string -lh0- application/x-lharc lh0 | |
node +2 string -lh1- application/x-lharc lh1 | |
node +2 string -lz4- application/x-lharc lz4 | |
node +2 string -lz5- application/x-lharc lz5 | |
node +# [never seen any but the last; -lh4- reported in comp.compression:] | |
node +2 string -lzs- application/x-lha lzs | |
node +2 string -lh\ - application/x-lha lh | |
node +2 string -lhd- application/x-lha lhd | |
node +2 string -lh2- application/x-lha lh2 | |
node +2 string -lh3- application/x-lha lh3 | |
node +2 string -lh4- application/x-lha lh4 | |
node +2 string -lh5- application/x-lha lh5 | |
node +2 string -lh6- application/x-lha lh6 | |
node +2 string -lh7- application/x-lha lh7 | |
node +# Shell archives | |
node +10 string #\ This\ is\ a\ shell\ archive application/octet-stream x-shell | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# frame: file(1) magic for FrameMaker files | |
node +# | |
node +# This stuff came on a FrameMaker demo tape, most of which is | |
node +# copyright, but this file is "published" as witness the following: | |
node +# | |
node +0 string \<MakerFile application/x-frame | |
node +0 string \<MIFFile application/x-frame | |
node +0 string \<MakerDictionary application/x-frame | |
node +0 string \<MakerScreenFon application/x-frame | |
node +0 string \<MML application/x-frame | |
node +0 string \<Book application/x-frame | |
node +0 string \<Maker application/x-frame | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# html: file(1) magic for HTML (HyperText Markup Language) docs | |
node +# | |
node +# from Daniel Quinlan <quinlan@yggdrasil.com> | |
node +# | |
node +0 string/cB \<!DOCTYPE\ html text/html | |
node +0 string/cb \<head text/html | |
node +0 string/cb \<title text/html | |
node +0 string/bc \<html text/html | |
node +0 string \<!-- text/html | |
node +0 string/c \<h1 text/html | |
node + | |
node +0 string \<?xml text/xml | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# images: file(1) magic for image formats (see also "c-lang" for XPM bitmaps) | |
node +# | |
node +# originally from jef@helios.ee.lbl.gov (Jef Poskanzer), | |
node +# additions by janl@ifi.uio.no as well as others. Jan also suggested | |
node +# merging several one- and two-line files into here. | |
node +# | |
node +# XXX - byte order for GIF and TIFF fields? | |
node +# [GRR: TIFF allows both byte orders; GIF is probably little-endian] | |
node +# | |
node + | |
node +# [GRR: what the hell is this doing in here?] | |
node +#0 string xbtoa btoa'd file | |
node + | |
node +# PBMPLUS | |
node +# PBM file | |
node +0 string P1 image/x-portable-bitmap 7bit | |
node +# PGM file | |
node +0 string P2 image/x-portable-greymap 7bit | |
node +# PPM file | |
node +0 string P3 image/x-portable-pixmap 7bit | |
node +# PBM "rawbits" file | |
node +0 string P4 image/x-portable-bitmap | |
node +# PGM "rawbits" file | |
node +0 string P5 image/x-portable-greymap | |
node +# PPM "rawbits" file | |
node +0 string P6 image/x-portable-pixmap | |
node + | |
node +# NIFF (Navy Interchange File Format, a modification of TIFF) | |
node +# [GRR: this *must* go before TIFF] | |
node +0 string IIN1 image/x-niff | |
node + | |
node +# TIFF and friends | |
node +# TIFF file, big-endian | |
node +0 string MM image/tiff | |
node +# TIFF file, little-endian | |
node +0 string II image/tiff | |
node + | |
node +# possible GIF replacements; none yet released! | |
node +# (Greg Roelofs, newt@uchicago.edu) | |
node +# | |
node +# GRR 950115: this was mine ("Zip GIF"): | |
node +# ZIF image (GIF+deflate alpha) | |
node +0 string GIF94z image/unknown | |
node +# | |
node +# GRR 950115: this is Jeremy Wohl's Free Graphics Format (better): | |
node +# FGF image (GIF+deflate beta) | |
node +0 string FGF95a image/unknown | |
node +# | |
node +# GRR 950115: this is Thomas Boutell's Portable Bitmap Format proposal | |
node +# (best; not yet implemented): | |
node +# PBF image (deflate compression) | |
node +0 string PBF image/unknown | |
node + | |
node +# GIF | |
node +0 string GIF image/gif | |
node + | |
node +# JPEG images | |
node +0 beshort 0xffd8 image/jpeg | |
node + | |
node +# PC bitmaps (OS/2, Windoze BMP files) (Greg Roelofs, newt@uchicago.edu) | |
node +0 string BM image/x-ms-bmp | |
node +#>14 byte 12 (OS/2 1.x format) | |
node +#>14 byte 64 (OS/2 2.x format) | |
node +#>14 byte 40 (Windows 3.x format) | |
node +#0 string IC icon | |
node +#0 string PI pointer | |
node +#0 string CI color icon | |
node +#0 string CP color pointer | |
node +#0 string BA bitmap array | |
node + | |
node +# CDROM Filesystems | |
node +32769 string CD001 application/x-iso9660 | |
node + | |
node +# Newer StuffIt archives (grant@netbsd.org) | |
node +0 string StuffIt application/x-stuffit | |
node +#>162 string >0 : %s | |
node + | |
node +# BinHex is the Macintosh ASCII-encoded file format (see also "apple") | |
node +# Daniel Quinlan, quinlan@yggdrasil.com | |
node +11 string must\ be\ converted\ with\ BinHex\ 4 application/mac-binhex40 | |
node +##>41 string x \b, version %.3s | |
node + | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# lisp: file(1) magic for lisp programs | |
node +# | |
node +# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com) | |
node +0 string ;; text/plain 8bit | |
node +# Emacs 18 - this is always correct, but not very magical. | |
node +0 string \012( application/x-elc | |
node +# Emacs 19 | |
node +0 string ;ELC\023\000\000\000 application/x-elc | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# mail.news: file(1) magic for mail and news | |
node +# | |
node +# There are tests to ascmagic.c to cope with mail and news. | |
node +0 string Relay-Version: message/rfc822 7bit | |
node +0 string #!\ rnews message/rfc822 7bit | |
node +0 string N#!\ rnews message/rfc822 7bit | |
node +0 string Forward\ to message/rfc822 7bit | |
node +0 string Pipe\ to message/rfc822 7bit | |
node +0 string Return-Path: message/rfc822 7bit | |
node +0 string Received: message/rfc822 | |
node +0 string Path: message/news 8bit | |
node +0 string Xref: message/news 8bit | |
node +0 string From: message/rfc822 7bit | |
node +0 string Article message/news 8bit | |
node +#------------------------------------------------------------------------------ | |
node +# msword: file(1) magic for MS Word files | |
node +# | |
node +# Contributor claims: | |
node +# Reversed-engineered MS Word magic numbers | |
node +# | |
node + | |
node +0 string \376\067\0\043 application/msword | |
node +0 string \320\317\021\340\241\261 application/msword | |
node +0 string \333\245-\0\0\0 application/msword | |
node + | |
node + | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# printer: file(1) magic for printer-formatted files | |
node +# | |
node + | |
node +# PostScript | |
node +0 string %! application/postscript | |
node +0 string \004%! application/postscript | |
node + | |
node +# Acrobat | |
node +# (due to clamen@cs.cmu.edu) | |
node +0 string %PDF- application/pdf | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# sc: file(1) magic for "sc" spreadsheet | |
node +# | |
node +38 string Spreadsheet application/x-sc | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# tex: file(1) magic for TeX files | |
node +# | |
node +# XXX - needs byte-endian stuff (big-endian and little-endian DVI?) | |
node +# | |
node +# From <conklin@talisman.kaleida.com> | |
node + | |
node +# Although we may know the offset of certain text fields in TeX DVI | |
node +# and font files, we can't use them reliably because they are not | |
node +# zero terminated. [but we do anyway, christos] | |
node +0 string \367\002 application/x-dvi | |
node +#0 string \367\203 TeX generic font data | |
node +#0 string \367\131 TeX packed font data | |
node +#0 string \367\312 TeX virtual font data | |
node +#0 string This\ is\ TeX, TeX transcript text | |
node +#0 string This\ is\ METAFONT, METAFONT transcript text | |
node + | |
node +# There is no way to detect TeX Font Metric (*.tfm) files without | |
node +# breaking them apart and reading the data. The following patterns | |
node +# match most *.tfm files generated by METAFONT or afm2tfm. | |
node +2 string \000\021 application/x-tex-tfm | |
node +2 string \000\022 application/x-tex-tfm | |
node +#>34 string >\0 (%s) | |
node + | |
node +# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com) | |
node +0 string \\input\ texinfo text/x-texinfo | |
node +0 string This\ is\ Info\ file text/x-info | |
node + | |
node +# correct TeX magic for Linux (and maybe more) | |
node +# from Peter Tobias (tobias@server.et-inf.fho-emden.de) | |
node +# | |
node +0 leshort 0x02f7 application/x-dvi | |
node + | |
node +# RTF - Rich Text Format | |
node +0 string {\\rtf text/rtf | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# animation: file(1) magic for animation/movie formats | |
node +# | |
node +# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8) | |
node +# MPEG file | |
node +# MPEG sequences | |
node +0 belong 0x000001BA | |
node +>4 byte &0x40 video/mp2p | |
node +>4 byte ^0x40 video/mpeg | |
node +0 belong 0x000001BB video/mpeg | |
node +0 belong 0x000001B0 video/mp4v-es | |
node +0 belong 0x000001B5 video/mp4v-es | |
node +0 belong 0x000001B3 video/mpv | |
node +0 belong&0xFF5FFF1F 0x47400010 video/mp2t | |
node +0 belong 0x00000001 | |
node +>4 byte&0x1F 0x07 video/h264 | |
node + | |
node +# FLI animation format | |
node +0 leshort 0xAF11 video/fli | |
node +# FLC animation format | |
node +0 leshort 0xAF12 video/flc | |
node +# | |
node +# SGI and Apple formats | |
node +# Added ISO mimes | |
node +0 string MOVI video/sgi | |
node +4 string moov video/quicktime | |
node +4 string mdat video/quicktime | |
node +4 string wide video/quicktime | |
node +4 string skip video/quicktime | |
node +4 string free video/quicktime | |
node +4 string idsc image/x-quicktime | |
node +4 string idat image/x-quicktime | |
node +4 string pckg application/x-quicktime | |
node +4 string/B jP image/jp2 | |
node +4 string ftyp | |
node +>8 string isom video/mp4 | |
node +>8 string mp41 video/mp4 | |
node +>8 string mp42 video/mp4 | |
node +>8 string/B jp2 image/jp2 | |
node +>8 string 3gp video/3gpp | |
node +>8 string avc1 video/3gpp | |
node +>8 string mmp4 video/mp4 | |
node +>8 string/B M4A audio/mp4 | |
node +>8 string/B qt video/quicktime | |
node +# The contributor claims: | |
node +# I couldn't find a real magic number for these, however, this | |
node +# -appears- to work. Note that it might catch other files, too, | |
node +# so BE CAREFUL! | |
node +# | |
node +# Note that title and author appear in the two 20-byte chunks | |
node +# at decimal offsets 2 and 22, respectively, but they are XOR'ed with | |
node +# 255 (hex FF)! DL format SUCKS BIG ROCKS. | |
node +# | |
node +# DL file version 1 , medium format (160x100, 4 images/screen) | |
node +0 byte 1 video/unknown | |
node +0 byte 2 video/unknown | |
node +# | |
node +# Databases | |
node +# | |
node +# GDBM magic numbers | |
node +# Will be maintained as part of the GDBM distribution in the future. | |
node +# <downsj@teeny.org> | |
node +0 belong 0x13579ace application/x-gdbm | |
node +0 lelong 0x13579ace application/x-gdbm | |
node +0 string GDBM application/x-gdbm | |
node +# | |
node +0 belong 0x061561 application/x-dbm | |
node +# | |
node +# Executables | |
node +# | |
node +0 string \177ELF | |
node +>16 leshort 0 application/octet-stream | |
node +>16 leshort 1 application/x-object | |
node +>16 leshort 2 application/x-executable | |
node +>16 leshort 3 application/x-sharedlib | |
node +>16 leshort 4 application/x-coredump | |
node +>16 beshort 0 application/octet-stream | |
node +>16 beshort 1 application/x-object | |
node +>16 beshort 2 application/x-executable | |
node +>16 beshort 3 application/x-sharedlib | |
node +>16 beshort 4 application/x-coredump | |
node +# | |
node +# DOS | |
node +0 string MZ application/x-dosexec | |
node +# | |
node +# KDE | |
node +0 string [KDE\ Desktop\ Entry] application/x-kdelnk | |
node +0 string \#\ KDE\ Config\ File application/x-kdelnk | |
node +# xmcd database file for kscd | |
node +0 string \#\ xmcd text/xmcd | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# pkgadd: file(1) magic for SysV R4 PKG Datastreams | |
node +# | |
node +0 string #\ PaCkAgE\ DaTaStReAm application/x-svr4-package | |
node + | |
node +#PNG Image Format | |
node +0 string \x89PNG image/png | |
node + | |
node +# MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/> | |
node +0 string \x8aMNG video/x-mng | |
node +0 string \x8aJNG video/x-jng | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# Hierarchical Data Format, used to facilitate scientific data exchange | |
node +# specifications at http://hdf.ncsa.uiuc.edu/ | |
node +#Hierarchical Data Format (version 4) data | |
node +0 belong 0x0e031301 application/x-hdf | |
node +#Hierarchical Data Format (version 5) data | |
node +0 string \211HDF\r\n\032 application/x-hdf | |
node + | |
node +# Adobe Photoshop | |
node +0 string 8BPS image/x-photoshop | |
node + | |
node +# Felix von Leitner <felix-file@fefe.de> | |
node +0 string d8:announce application/x-bittorrent | |
node + | |
node + | |
node +# lotus 1-2-3 document | |
node +0 belong 0x00001a00 application/x-123 | |
node +0 belong 0x00000200 application/x-123 | |
node + | |
node +# MS Access database | |
node +4 string Standard\ Jet\ DB application/msaccess | |
node + | |
node +## magic for XBase files | |
node +#0 byte 0x02 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x03 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x04 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x05 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x30 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x43 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x7b | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x83 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x8b | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0x8e | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0xb3 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 byte 0xf5 | |
node +#>8 leshort >0 | |
node +#>>12 leshort 0 application/x-dbf | |
node +# | |
node +#0 leshort 0x0006 application/x-dbt | |
node + | |
node +# Debian has entries for the old PGP formats: | |
node +# pgp: file(1) magic for Pretty Good Privacy | |
node +# see http://lists.gnupg.org/pipermail/gnupg-devel/1999-September/016052.html | |
node +#text/PGP key public ring | |
node +0 beshort 0x9900 application/pgp | |
node +#text/PGP key security ring | |
node +0 beshort 0x9501 application/pgp | |
node +#text/PGP key security ring | |
node +0 beshort 0x9500 application/pgp | |
node +#text/PGP encrypted data | |
node +0 beshort 0xa600 application/pgp-encrypted | |
node +#text/PGP armored data | |
node +##public key block | |
node +2 string ---BEGIN\ PGP\ PUBLIC\ KEY\ BLOCK- application/pgp-keys | |
node +0 string -----BEGIN\040PGP\40MESSAGE- application/pgp | |
node +0 string -----BEGIN\040PGP\40SIGNATURE- application/pgp-signature | |
node +# | |
node +# GnuPG Magic: | |
node +# | |
node +# | |
node +#text/GnuPG key public ring | |
node +0 beshort 0x9901 application/pgp | |
node +#text/OpenPGP data | |
node +0 beshort 0x8501 application/pgp-encrypted | |
node + | |
node +# flash: file(1) magic for Macromedia Flash file format | |
node +# | |
node +# See | |
node +# | |
node +# http://www.macromedia.com/software/flash/open/ | |
node +# | |
node +0 string FWS | |
node +>3 byte x application/x-shockwave-flash | |
node + | |
node +# The following paramaters are created for Namazu. | |
node +# <http://www.namazu.org/> | |
node +# | |
node +# 1999/08/13 | |
node +#0 string \<!--\ MHonArc text/html; x-type=mhonarc | |
node +0 string BZh application/x-bzip2 | |
node + | |
node +# 1999/09/09 | |
node +# VRML (suggested by Masao Takaku) | |
node +0 string #VRML\ V1.0\ ascii model/vrml | |
node +0 string #VRML\ V2.0\ utf8 model/vrml | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# ichitaro456: file(1) magic for Just System Word Processor Ichitaro | |
node +# | |
node +# Contributor kenzo-: | |
node +# Reversed-engineered JS Ichitaro magic numbers | |
node +# | |
node + | |
node +0 string DOC | |
node +>43 byte 0x14 application/ichitaro4 | |
node +>144 string JDASH application/ichitaro4 | |
node + | |
node +0 string DOC | |
node +>43 byte 0x15 application/ichitaro5 | |
node + | |
node +0 string DOC | |
node +>43 byte 0x16 application/ichitaro6 | |
node + | |
node +#------------------------------------------------------------------------------ | |
node +# office97: file(1) magic for MicroSoft Office files | |
node +# | |
node +# Contributor kenzo-: | |
node +# Reversed-engineered MS Office magic numbers | |
node +# | |
node + | |
node +#0 string \320\317\021\340\241\261\032\341 | |
node +#>48 byte 0x1B application/excel | |
node + | |
node +2080 string Microsoft\ Excel\ 5.0\ Worksheet application/excel | |
node +2114 string Biff5 application/excel | |
node + | |
node +0 string \224\246\056 application/msword | |
node + | |
node +0 belong 0x31be0000 application/msword | |
node + | |
node +0 string PO^Q` application/msword | |
node + | |
node +0 string \320\317\021\340\241\261\032\341 | |
node +>546 string bjbj application/msword | |
node +>546 string jbjb application/msword | |
node + | |
node +512 string R\0o\0o\0t\0\ \0E\0n\0t\0r\0y application/msword | |
node + | |
node +2080 string Microsoft\ Word\ 6.0\ Document application/msword | |
node +2080 string Documento\ Microsoft\ Word\ 6 application/msword | |
node +2112 string MSWordDoc application/msword | |
node + | |
node +#0 string \320\317\021\340\241\261\032\341 application/powerpoint | |
node +0 string \320\317\021\340\241\261\032\341 application/msword | |
node + | |
node +0 string #\ PaCkAgE\ DaTaStReAm application/x-svr4-package | |
node + | |
node + | |
node +# WinNT/WinCE PE files (Warner Losh, imp@village.org) | |
node +# | |
node +128 string PE\000\000 application/octet-stream | |
node +0 string PE\000\000 application/octet-stream | |
node + | |
node +# miscellaneous formats | |
node +0 string LZ application/octet-stream | |
node + | |
node + | |
node +# .EXE formats (Greg Roelofs, newt@uchicago.edu) | |
node +# | |
node +0 string MZ | |
node +>24 string @ application/octet-stream | |
node + | |
node +0 string MZ | |
node +>30 string Copyright\ 1989-1990\ PKWARE\ Inc. application/x-zip | |
node + | |
node +0 string MZ | |
node +>30 string PKLITE\ Copr. application/x-zip | |
node + | |
node +0 string MZ | |
node +>36 string LHa's\ SFX application/x-lha | |
node + | |
node +0 string MZ application/octet-stream | |
node + | |
node +# LHA archiver | |
node +2 string -lh | |
node +>6 string - application/x-lha | |
node + | |
node + | |
node +# Zoo archiver | |
node +20 lelong 0xfdc4a7dc application/x-zoo | |
node + | |
node +# ARC archiver | |
node +0 lelong&0x8080ffff 0x0000081a application/x-arc | |
node +0 lelong&0x8080ffff 0x0000091a application/x-arc | |
node +0 lelong&0x8080ffff 0x0000021a application/x-arc | |
node +0 lelong&0x8080ffff 0x0000031a application/x-arc | |
node +0 lelong&0x8080ffff 0x0000041a application/x-arc | |
node +0 lelong&0x8080ffff 0x0000061a application/x-arc | |
node + | |
node +# Microsoft Outlook's Transport Neutral Encapsulation Format (TNEF) | |
node +0 lelong 0x223e9f78 application/ms-tnef | |
node + | |
node +# From: stephane.loeuillet@tiscali.f | |
node +# http://www.djvuzone.org/ | |
node +0 string AT&TFORM image/x.djvu | |
node + | |
node +# Danny Milosavljevic <danny.milo@gmx.net> | |
node +# this are adrift (adventure game standard) game files, extension .taf | |
node +# depending on version magic continues with 0x93453E6139FA (V 4.0) | |
node +# 0x9445376139FA (V 3.90) | |
node +# 0x9445366139FA (V 3.80) | |
node +# this is from source (http://www.adrift.org.uk/) and I have some taf | |
node +# files, and checked them. | |
node +#0 belong 0x3C423FC9 | |
node +#>4 belong 0x6A87C2CF application/x-adrift | |
node +#0 string \000\000\001\000 image/x-ico | |
node + | |
node +# Quark Xpress 3 Files: | |
node +# (made the mimetype up) | |
node +0 string \0\0MMXPR3\0 application/x-quark-xpress-3 | |
node + | |
node +# EET archive | |
node +# From: Tilman Sauerbeck <tilman@code-monkey.de> | |
node +0 belong 0x1ee7ff00 application/x-eet | |
node + | |
node +# From: Denis Knauf, via gentoo. | |
node +0 string fLaC audio/x-flac | |
node +0 string CWS application/x-shockwave-flash | |
node + | |
node +# Gnumeric spreadsheet | |
node +# This entry is only semi-helpful, as Gnumeric compresses its files, so | |
node +# they will ordinarily reported as "compressed", but at least -z helps | |
node +39 string =<gmr:Workbook application/x-gnumeric | |
node + | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * file[/etc/apache2-customers/ports.conf] action delete (up to date) | |
node * template[/etc/apache2-customers/apache2.conf] action create | |
node - create new file /etc/apache2-customers/apache2.conf | |
node - update content in file /etc/apache2-customers/apache2.conf from none to ac761d | |
node --- /etc/apache2-customers/apache2.conf 2016-10-24 06:29:58.550478643 +0000 | |
node +++ /etc/apache2-customers/.apache2.conf20161024-1344-ligy5f 2016-10-24 06:29:58.550478643 +0000 | |
node @@ -1 +1,22 @@ | |
node +ServerName node | |
node +ServerRoot /etc/apache2-customers | |
node +PidFile /var/run/apache2/apache2-customers.pid | |
node +User www-data | |
node +Group www-data | |
node +Mutex file:/var/lock/apache2-customers default | |
node +Timeout 400 | |
node +ErrorLog /var/log/apache2-customers/error_log | |
node +LogLevel warn | |
node +KeepAlive On | |
node +MaxKeepAliveRequests 100 | |
node +KeepAliveTimeout 5 | |
node +DefaultType None | |
node +HostnameLookups off | |
node + | |
node +Listen 0.0.0.0:80 | |
node + | |
node +IncludeOptional mods-enabled/*.load | |
node +IncludeOptional conf-enabled/*.conf | |
node +IncludeOptional mods-enabled/*.conf | |
node +IncludeOptional sites-enabled/*.conf | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * apt_package[apache2-mpm-prefork] action install | |
node - install version 2.4.7-1ubuntu4.13 of package apache2-mpm-prefork | |
node * httpd_module_debian[mpm_prefork] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/mpm_prefork.load] action create | |
node - create new file /etc/apache2-customers/mods-available/mpm_prefork.load | |
node - update content in file /etc/apache2-customers/mods-available/mpm_prefork.load from none to 0d8639 | |
node --- /etc/apache2-customers/mods-available/mpm_prefork.load 2016-10-24 06:29:59.626478635 +0000 | |
node +++ /etc/apache2-customers/mods-available/.mpm_prefork.load20161024-1344-12euxsq 2016-10-24 06:29:59.626478635 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/mpm_prefork.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/mpm_prefork.load to /etc/apache2-customers/mods-available/mpm_prefork.load | |
node | |
node * httpd_config_debian[mpm_prefork] action create | |
node * directory[/etc/apache2-customers/conf-available] action create (up to date) | |
node * template[/etc/apache2-customers/conf-available/mpm_prefork.conf] action create | |
node - create new file /etc/apache2-customers/conf-available/mpm_prefork.conf | |
node - update content in file /etc/apache2-customers/conf-available/mpm_prefork.conf from none to 90c0df | |
node --- /etc/apache2-customers/conf-available/mpm_prefork.conf 2016-10-24 06:29:59.650478635 +0000 | |
node +++ /etc/apache2-customers/conf-available/.mpm_prefork.conf20161024-1344-1tj3w74 2016-10-24 06:29:59.650478635 +0000 | |
node @@ -1 +1,9 @@ | |
node +<IfModule prefork_module> | |
node + StartServers 5 | |
node + MinSpareServers 5 | |
node + MaxSpareServers 10 | |
node + MaxClients 0 | |
node + MaxRequestWorkers 150 | |
node + MaxConnectionsPerChild 0 | |
node +</IfModule> | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/etc/apache2-customers/conf-enabled] action create (up to date) | |
node * link[/etc/apache2-customers/conf-enabled/mpm_prefork.conf] action create | |
node - create symlink at /etc/apache2-customers/conf-enabled/mpm_prefork.conf to /etc/apache2-customers/conf-available/mpm_prefork.conf | |
node | |
node * httpd_config_debian[mpm_worker] action delete | |
node * file[/etc/apache2-customers/conf-available/mpm_worker.conf] action delete (up to date) | |
node * link[/etc/apache2-customers/conf-enabled/mpm_worker.conf] action delete (up to date) | |
node (up to date) | |
node * httpd_config_debian[mpm_event] action delete | |
node * file[/etc/apache2-customers/conf-available/mpm_event.conf] action delete (up to date) | |
node * link[/etc/apache2-customers/conf-enabled/mpm_event.conf] action delete (up to date) | |
node (up to date) | |
node * httpd_module_debian[authz_core] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/authz_core.load] action create | |
node - create new file /etc/apache2-customers/mods-available/authz_core.load | |
node - update content in file /etc/apache2-customers/mods-available/authz_core.load from none to 7bca4c | |
node --- /etc/apache2-customers/mods-available/authz_core.load 2016-10-24 06:29:59.722478635 +0000 | |
node +++ /etc/apache2-customers/mods-available/.authz_core.load20161024-1344-dgugu1 2016-10-24 06:29:59.722478635 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/authz_core.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/authz_core.load to /etc/apache2-customers/mods-available/authz_core.load | |
node | |
node * httpd_module_debian[authz_host] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/authz_host.load] action create | |
node - create new file /etc/apache2-customers/mods-available/authz_host.load | |
node - update content in file /etc/apache2-customers/mods-available/authz_host.load from none to a6f9be | |
node --- /etc/apache2-customers/mods-available/authz_host.load 2016-10-24 06:29:59.774478634 +0000 | |
node +++ /etc/apache2-customers/mods-available/.authz_host.load20161024-1344-1kndq41 2016-10-24 06:29:59.774478634 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/authz_host.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/authz_host.load to /etc/apache2-customers/mods-available/authz_host.load | |
node | |
node * httpd_module_debian[authn_core] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/authn_core.load] action create | |
node - create new file /etc/apache2-customers/mods-available/authn_core.load | |
node - update content in file /etc/apache2-customers/mods-available/authn_core.load from none to aa5f29 | |
node --- /etc/apache2-customers/mods-available/authn_core.load 2016-10-24 06:29:59.830478634 +0000 | |
node +++ /etc/apache2-customers/mods-available/.authn_core.load20161024-1344-1uhy52 2016-10-24 06:29:59.830478634 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule authn_core_module /usr/lib/apache2/modules/mod_authn_core.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/authn_core.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/authn_core.load to /etc/apache2-customers/mods-available/authn_core.load | |
node | |
node * httpd_module_debian[auth_basic] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/auth_basic.load] action create | |
node - create new file /etc/apache2-customers/mods-available/auth_basic.load | |
node - update content in file /etc/apache2-customers/mods-available/auth_basic.load from none to 0d1116 | |
node --- /etc/apache2-customers/mods-available/auth_basic.load 2016-10-24 06:29:59.934478633 +0000 | |
node +++ /etc/apache2-customers/mods-available/.auth_basic.load20161024-1344-u0fsmo 2016-10-24 06:29:59.934478633 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/auth_basic.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/auth_basic.load to /etc/apache2-customers/mods-available/auth_basic.load | |
node | |
node * httpd_module_debian[access_compat] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/access_compat.load] action create | |
node - create new file /etc/apache2-customers/mods-available/access_compat.load | |
node - update content in file /etc/apache2-customers/mods-available/access_compat.load from none to 3f1694 | |
node --- /etc/apache2-customers/mods-available/access_compat.load 2016-10-24 06:29:59.994478633 +0000 | |
node +++ /etc/apache2-customers/mods-available/.access_compat.load20161024-1344-6y7ngr 2016-10-24 06:29:59.994478633 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule access_compat_module /usr/lib/apache2/modules/mod_access_compat.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/access_compat.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/access_compat.load to /etc/apache2-customers/mods-available/access_compat.load | |
node | |
node * httpd_module_debian[authn_file] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/authn_file.load] action create | |
node - create new file /etc/apache2-customers/mods-available/authn_file.load | |
node - update content in file /etc/apache2-customers/mods-available/authn_file.load from none to f03155 | |
node --- /etc/apache2-customers/mods-available/authn_file.load 2016-10-24 06:30:00.050478632 +0000 | |
node +++ /etc/apache2-customers/mods-available/.authn_file.load20161024-1344-n9xe5p 2016-10-24 06:30:00.050478632 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/authn_file.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/authn_file.load to /etc/apache2-customers/mods-available/authn_file.load | |
node | |
node * httpd_module_debian[authz_user] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/authz_user.load] action create | |
node - create new file /etc/apache2-customers/mods-available/authz_user.load | |
node - update content in file /etc/apache2-customers/mods-available/authz_user.load from none to 854c87 | |
node --- /etc/apache2-customers/mods-available/authz_user.load 2016-10-24 06:30:00.110478632 +0000 | |
node +++ /etc/apache2-customers/mods-available/.authz_user.load20161024-1344-gbqpsv 2016-10-24 06:30:00.110478632 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/authz_user.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/authz_user.load to /etc/apache2-customers/mods-available/authz_user.load | |
node | |
node * httpd_module_debian[alias] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/alias.load] action create | |
node - create new file /etc/apache2-customers/mods-available/alias.load | |
node - update content in file /etc/apache2-customers/mods-available/alias.load from none to 40a833 | |
node --- /etc/apache2-customers/mods-available/alias.load 2016-10-24 06:30:00.178478632 +0000 | |
node +++ /etc/apache2-customers/mods-available/.alias.load20161024-1344-dxduny 2016-10-24 06:30:00.178478632 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/alias.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/alias.load to /etc/apache2-customers/mods-available/alias.load | |
node | |
node * httpd_module_debian[dir] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/dir.load] action create | |
node - create new file /etc/apache2-customers/mods-available/dir.load | |
node - update content in file /etc/apache2-customers/mods-available/dir.load from none to 1ec99f | |
node --- /etc/apache2-customers/mods-available/dir.load 2016-10-24 06:30:00.250478631 +0000 | |
node +++ /etc/apache2-customers/mods-available/.dir.load20161024-1344-1hiorr3 2016-10-24 06:30:00.250478631 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/dir.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/dir.load to /etc/apache2-customers/mods-available/dir.load | |
node | |
node * httpd_module_debian[autoindex] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/autoindex.load] action create | |
node - create new file /etc/apache2-customers/mods-available/autoindex.load | |
node - update content in file /etc/apache2-customers/mods-available/autoindex.load from none to b1e99c | |
node --- /etc/apache2-customers/mods-available/autoindex.load 2016-10-24 06:30:00.314478631 +0000 | |
node +++ /etc/apache2-customers/mods-available/.autoindex.load20161024-1344-wy89k 2016-10-24 06:30:00.314478631 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/autoindex.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/autoindex.load to /etc/apache2-customers/mods-available/autoindex.load | |
node | |
node * httpd_module_debian[env] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/env.load] action create | |
node - create new file /etc/apache2-customers/mods-available/env.load | |
node - update content in file /etc/apache2-customers/mods-available/env.load from none to 486c82 | |
node --- /etc/apache2-customers/mods-available/env.load 2016-10-24 06:30:00.382478630 +0000 | |
node +++ /etc/apache2-customers/mods-available/.env.load20161024-1344-1i6jbls 2016-10-24 06:30:00.382478630 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule env_module /usr/lib/apache2/modules/mod_env.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/env.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/env.load to /etc/apache2-customers/mods-available/env.load | |
node | |
node * httpd_module_debian[mime] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/mime.load] action create | |
node - create new file /etc/apache2-customers/mods-available/mime.load | |
node - update content in file /etc/apache2-customers/mods-available/mime.load from none to f86f43 | |
node --- /etc/apache2-customers/mods-available/mime.load 2016-10-24 06:30:00.454478630 +0000 | |
node +++ /etc/apache2-customers/mods-available/.mime.load20161024-1344-ctda2m 2016-10-24 06:30:00.454478630 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/mime.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/mime.load to /etc/apache2-customers/mods-available/mime.load | |
node | |
node * httpd_module_debian[negotiation] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/negotiation.load] action create | |
node - create new file /etc/apache2-customers/mods-available/negotiation.load | |
node - update content in file /etc/apache2-customers/mods-available/negotiation.load from none to 0773ca | |
node --- /etc/apache2-customers/mods-available/negotiation.load 2016-10-24 06:30:00.518478629 +0000 | |
node +++ /etc/apache2-customers/mods-available/.negotiation.load20161024-1344-1or7itl 2016-10-24 06:30:00.518478629 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule negotiation_module /usr/lib/apache2/modules/mod_negotiation.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/negotiation.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/negotiation.load to /etc/apache2-customers/mods-available/negotiation.load | |
node | |
node * httpd_module_debian[setenvif] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/setenvif.load] action create | |
node - create new file /etc/apache2-customers/mods-available/setenvif.load | |
node - update content in file /etc/apache2-customers/mods-available/setenvif.load from none to bd4b18 | |
node --- /etc/apache2-customers/mods-available/setenvif.load 2016-10-24 06:30:00.586478629 +0000 | |
node +++ /etc/apache2-customers/mods-available/.setenvif.load20161024-1344-1jgyhk2 2016-10-24 06:30:00.586478629 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule setenvif_module /usr/lib/apache2/modules/mod_setenvif.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/setenvif.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/setenvif.load to /etc/apache2-customers/mods-available/setenvif.load | |
node | |
node * httpd_module_debian[filter] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/filter.load] action create | |
node - create new file /etc/apache2-customers/mods-available/filter.load | |
node - update content in file /etc/apache2-customers/mods-available/filter.load from none to 918335 | |
node --- /etc/apache2-customers/mods-available/filter.load 2016-10-24 06:30:00.650478628 +0000 | |
node +++ /etc/apache2-customers/mods-available/.filter.load20161024-1344-7bwr1 2016-10-24 06:30:00.650478628 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule filter_module /usr/lib/apache2/modules/mod_filter.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/filter.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/filter.load to /etc/apache2-customers/mods-available/filter.load | |
node | |
node * httpd_module_debian[deflate] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/deflate.load] action create | |
node - create new file /etc/apache2-customers/mods-available/deflate.load | |
node - update content in file /etc/apache2-customers/mods-available/deflate.load from none to a9a45c | |
node --- /etc/apache2-customers/mods-available/deflate.load 2016-10-24 06:30:00.710478628 +0000 | |
node +++ /etc/apache2-customers/mods-available/.deflate.load20161024-1344-rms2f6 2016-10-24 06:30:00.710478628 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/deflate.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/deflate.load to /etc/apache2-customers/mods-available/deflate.load | |
node | |
node * httpd_module_debian[status] action create | |
node * apt_package[apache2] action install (up to date) | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/status.load] action create | |
node - create new file /etc/apache2-customers/mods-available/status.load | |
node - update content in file /etc/apache2-customers/mods-available/status.load from none to 1edf75 | |
node --- /etc/apache2-customers/mods-available/status.load 2016-10-24 06:30:00.770478627 +0000 | |
node +++ /etc/apache2-customers/mods-available/.status.load20161024-1344-17ushat 2016-10-24 06:30:00.770478627 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule status_module /usr/lib/apache2/modules/mod_status.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/status.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/status.load to /etc/apache2-customers/mods-available/status.load | |
node | |
node | |
node * httpd_service_debian_sysvinit[customers] action start | |
node * template[/etc/init.d/apache2-customers] action create | |
node - create new file /etc/init.d/apache2-customers | |
node - update content in file /etc/init.d/apache2-customers from none to 5e1899 | |
node --- /etc/init.d/apache2-customers 2016-10-24 06:30:00.786478627 +0000 | |
node +++ /etc/init.d/.apache2-customers20161024-1344-11pydhp 2016-10-24 06:30:00.786478627 +0000 | |
node @@ -1 +1,413 @@ | |
node +#!/bin/sh | |
node +### BEGIN INIT INFO | |
node +# Provides: apache2-customers | |
node +# Required-Start: $local_fs $remote_fs $network $syslog $named | |
node +# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
node +# Default-Start: 2 3 4 5 | |
node +# Default-Stop: 0 1 6 | |
node +# X-Interactive: true | |
node +# Short-Description: Start/stop apache2 web server | |
node +# Description: Start the web server and associated helpers | |
node +# This script will start apache2, and possibly all associated instances. | |
node +# Moreover, it will set-up temporary directories and helper tools such as | |
node +# htcacheclean when required by the configuration. | |
node +### END INIT INFO | |
node + | |
node +# set -x | |
node + | |
node +DESC="web server" | |
node +NAME=apache2 | |
node +DAEMON=/usr/sbin/$NAME | |
node + | |
node +SCRIPTNAME="${0##*/}" | |
node +SCRIPTNAME="${SCRIPTNAME##[KS][0-9][0-9]}" | |
node +if [ -n "$APACHE_CONFDIR" ] ; then | |
node + if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then | |
node + DIR_SUFFIX="${APACHE_CONFDIR##/etc/apache2-}" | |
node + else | |
node + DIR_SUFFIX= | |
node + fi | |
node +elif [ "${SCRIPTNAME##apache2-}" != "$SCRIPTNAME" ] ; then | |
node + DIR_SUFFIX="-${SCRIPTNAME##apache2-}" | |
node + APACHE_CONFDIR=/etc/apache2$DIR_SUFFIX | |
node +else | |
node + DIR_SUFFIX= | |
node + APACHE_CONFDIR=/etc/apache2 | |
node +fi | |
node +if [ -z "$APACHE_ENVVARS" ] ; then | |
node + APACHE_ENVVARS=$APACHE_CONFDIR/envvars | |
node +fi | |
node +export APACHE_CONFDIR APACHE_ENVVARS | |
node + | |
node +ENV="env -i LANG=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
node +if [ "$APACHE_CONFDIR" != /etc/apache2 ] ; then | |
node + ENV="$ENV APACHE_CONFDIR=$APACHE_CONFDIR" | |
node +fi | |
node +if [ "$APACHE_ENVVARS" != "$APACHE_CONFDIR/envvars" ] ; then | |
node + ENV="$ENV APACHE_ENVVARS=$APACHE_ENVVARS" | |
node +fi | |
node + | |
node + | |
node +#edit /etc/default/apache2 to change this. | |
node +HTCACHECLEAN_RUN=auto | |
node +HTCACHECLEAN_MODE=daemon | |
node +HTCACHECLEAN_SIZE=300M | |
node +HTCACHECLEAN_DAEMON_INTERVAL=120 | |
node +HTCACHECLEAN_PATH=/var/cache/apache2$DIR_SUFFIX/mod_cache_disk | |
node +HTCACHECLEAN_OPTIONS="" | |
node + | |
node +# Read configuration variable file if it is present | |
node +if [ -f /etc/default/apache2$DIR_SUFFIX ] ; then | |
node + . /etc/default/apache2$DIR_SUFFIX | |
node +elif [ -f /etc/default/apache2 ] ; then | |
node + . /etc/default/apache2 | |
node +fi | |
node + | |
node +PIDFILE=$(. $APACHE_ENVVARS && echo $APACHE_PID_FILE) | |
node + | |
node +VERBOSE=no | |
node +if [ -f /etc/default/rcS ]; then | |
node + . /etc/default/rcS | |
node +fi | |
node +. /lib/lsb/init-functions | |
node + | |
node + | |
node +# Now, set defaults: | |
node +APACHE2CTL="$ENV apache2ctl" | |
node +HTCACHECLEAN="$ENV htcacheclean" | |
node +PIDFILE=$(. $APACHE_ENVVARS && echo $APACHE_PID_FILE) | |
node +APACHE2_INIT_MESSAGE="" | |
node + | |
node +CONFTEST_OUTFILE= | |
node +cleanup() { | |
node + if [ -n "$CONFTEST_OUTFILE" ] ; then | |
node + rm -f "$CONFTEST_OUTFILE" | |
node + fi | |
node +} | |
node +trap cleanup 0 # "0" means "EXIT", but "EXIT" is not portable | |
node + | |
node + | |
node +apache_conftest() { | |
node + [ -z "$CONFTEST_OUTFILE" ] || rm -f "$CONFTEST_OUTFILE" | |
node + CONFTEST_OUTFILE=$(mktemp) | |
node + if ! $APACHE2CTL configtest > "$CONFTEST_OUTFILE" 2>&1 ; then | |
node + return 1 | |
node + else | |
node + rm -f "$CONFTEST_OUTFILE" | |
node + CONFTEST_OUTFILE= | |
node + return 0 | |
node + fi | |
node +} | |
node + | |
node +clear_error_msg() { | |
node + [ -z "$CONFTEST_OUTFILE" ] || rm -f "$CONFTEST_OUTFILE" | |
node + CONFTEST_OUTFILE= | |
node + APACHE2_INIT_MESSAGE= | |
node +} | |
node + | |
node +print_error_msg() { | |
node + [ -z "$APACHE2_INIT_MESSAGE" ] || log_warning_msg "$APACHE2_INIT_MESSAGE" | |
node + if [ -n "$CONFTEST_OUTFILE" ] ; then | |
node + echo "Output of config test was:" >&2 | |
node + cat "$CONFTEST_OUTFILE" >&2 | |
node + rm -f "$CONFTEST_OUTFILE" | |
node + CONFTEST_OUTFILE= | |
node + fi | |
node +} | |
node + | |
node +apache_wait_start() { | |
node + local STATUS=$1 | |
node + local i=0 | |
node + while : ; do | |
node + PIDTMP=$(pidofproc -p $PIDFILE $DAEMON) | |
node + if [ -n "${PIDTMP:-}" ] && kill -0 "${PIDTMP:-}" 2> /dev/null; then | |
node + return $STATUS | |
node + fi | |
node + | |
node + if [ $i = "20" ] ; then | |
node + APACHE2_INIT_MESSAGE="The apache2$DIR_SUFFIX instance did not start within 20 seconds. Please read the log files to discover problems" | |
node + return 2 | |
node + fi | |
node + | |
node + [ "$VERBOSE" != no ] && log_progress_msg "." | |
node + sleep 1 | |
node + i=$(($i+1)) | |
node + done | |
node +} | |
node + | |
node +apache_wait_stop() { | |
node + local STATUS=$1 | |
node + | |
node + PIDTMP=$(pidofproc -p $PIDFILE $DAEMON) | |
node + if [ -n "${PIDTMP:-}" ] && kill -0 "${PIDTMP:-}" 2> /dev/null; then | |
node + local i=0 | |
node + while kill -0 "${PIDTMP:-}" 2> /dev/null; do | |
node + if [ $i = '60' ]; then | |
node + break | |
node + STATUS=2 | |
node + fi | |
node + [ "$VERBOSE" != no ] && log_progress_msg "." | |
node + sleep 1 | |
node + i=$(($i+1)) | |
node + done | |
node + return $STATUS | |
node + else | |
node + return $STATUS | |
node + fi | |
node +} | |
node + | |
node + | |
node +# | |
node +# Function that starts the daemon/service | |
node +# | |
node +do_start() | |
node +{ | |
node + # Return | |
node + # 0 if daemon has been started | |
node + # 1 if daemon was already running | |
node + # 2 if daemon could not be started | |
node + | |
node + if pidofproc -p $PIDFILE "$DAEMON" > /dev/null 2>&1 ; then | |
node + return 1 | |
node + fi | |
node + | |
node + if apache_conftest ; then | |
node + $APACHE2CTL start | |
node + apache_wait_start $? | |
node + return $? | |
node + else | |
node + APACHE2_INIT_MESSAGE="The apache2$DIR_SUFFIX configtest failed." | |
node + return 2 | |
node + fi | |
node +} | |
node + | |
node +# | |
node +# Function that stops the daemon/service | |
node +# | |
node +do_stop() | |
node +{ | |
node + # Return | |
node + # 0 if daemon has been stopped | |
node + # 1 if daemon was already stopped | |
node + # 2 if daemon could not be stopped | |
node + # other if a failure occurred | |
node + | |
node + # either "stop" or "graceful-stop" | |
node + local STOP=$1 | |
node + # can't use pidofproc from LSB here | |
node + local AP_RET=0 | |
node + | |
node + if pidof $DAEMON > /dev/null 2>&1 ; then | |
node + if [ -e $PIDFILE ] && pidof $DAEMON | tr ' ' '\n' | grep -w $(cat $PIDFILE) > /dev/null 2>&1 ; then | |
node + AP_RET=2 | |
node + else | |
node + AP_RET=1 | |
node + fi | |
node + else | |
node + AP_RET=0 | |
node + fi | |
node + | |
node + # AP_RET is: | |
node + # 0 if Apache (whichever) is not running | |
node + # 1 if Apache (whichever) is running | |
node + # 2 if Apache from the PIDFILE is running | |
node + | |
node + if [ $AP_RET = 0 ] ; then | |
node + return 1 | |
node + fi | |
node + | |
node + if [ $AP_RET = 2 ] && apache_conftest ; then | |
node + $APACHE2CTL $STOP > /dev/null 2>&1 | |
node + apache_wait_stop $? | |
node + return $? | |
node + else | |
node + if [ $AP_RET = 2 ]; then | |
node + clear_error_msg | |
node + APACHE2_INIT_MESSAGE="The apache2$DIR_SUFFIX configtest failed, so we are trying to kill it manually. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now!" | |
node + killproc -p $PIDFILE $DAEMON | |
node + apache_wait_stop $? | |
node + return $? | |
node + elif [ $AP_RET = 1 ] ; then | |
node + APACHE2_INIT_MESSAGE="There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand". | |
node + return 2 | |
node + fi | |
node + fi | |
node + | |
node +} | |
node + | |
node + | |
node +# | |
node +# Function that sends a SIGHUP to the daemon/service | |
node +# | |
node +do_reload() { | |
node + if apache_conftest; then | |
node + if ! pidofproc -p $PIDFILE "$DAEMON" > /dev/null 2>&1 ; then | |
node + APACHE2_INIT_MESSAGE="Apache2 is not running" | |
node + return 2 | |
node + fi | |
node + $APACHE2CTL graceful > /dev/null 2>&1 | |
node + return $? | |
node + else | |
node + APACHE2_INIT_MESSAGE="The apache2$DIR_SUFFIX configtest failed. Not doing anything." | |
node + return 2 | |
node + fi | |
node +} | |
node + | |
node + | |
node +check_htcacheclean() { | |
node + [ "$HTCACHECLEAN_MODE" = "daemon" ] || return 1 | |
node + [ "$HTCACHECLEAN_RUN" = "yes" ] && return 0 | |
node + | |
node + MODSDIR=$(. $APACHE_ENVVARS && echo $APACHE_MODS_ENABLED) | |
node + [ "$HTCACHECLEAN_RUN" = "auto" \ | |
node + -a -e ${MODSDIR:-$APACHE_CONFDIR/mods-enabled}/cache_disk.load ] && \ | |
node + return 0 | |
node + return 1 | |
node +} | |
node + | |
node +start_htcacheclean() { | |
node + $HTCACHECLEAN $HTCACHECLEAN_OPTIONS -d$HTCACHECLEAN_DAEMON_INTERVAL \ | |
node + -i -p$HTCACHECLEAN_PATH -l$HTCACHECLEAN_SIZE | |
node +} | |
node + | |
node +stop_htcacheclean() { | |
node + pkill -P 1 -f "htcacheclean.* -p$HTCACHECLEAN_PATH " 2> /dev/null || return 1 | |
node +} | |
node + | |
node + | |
node +# Sanity checks. They need to occur after function declarations | |
node +[ -x $DAEMON ] || exit 0 | |
node + | |
node +if [ ! -x $DAEMON ] ; then | |
node + echo "No apache-bin package installed" | |
node + exit 0 | |
node +fi | |
node + | |
node +if [ -z "$PIDFILE" ] ; then | |
node + echo ERROR: APACHE_PID_FILE needs to be defined in $APACHE_ENVVARS >&2 | |
node + exit 2 | |
node +fi | |
node + | |
node +if check_htcacheclean ; then | |
node + if [ ! -d "$HTCACHECLEAN_PATH" ] ; then | |
node + echo "htcacheclean is configured, but directory $HTCACHECLEAN_PATH does not exist!" >&2 | |
node + exit 2 | |
node + fi | |
node +fi | |
node + | |
node + | |
node + | |
node +case "$1" in | |
node + start) | |
node + log_daemon_msg "Starting $DESC" "$NAME" | |
node + do_start | |
node + RET_STATUS=$? | |
node + case "$RET_STATUS" in | |
node + 0|1) | |
node + log_success_msg | |
node + [ "$VERBOSE" != no ] && [ $RET_STATUS = 1 ] && log_warning_msg "Server was already running" | |
node + if check_htcacheclean ; then | |
node + [ "$VERBOSE" != no ] && log_daemon_msg "Starting HTTP cache cleaning daemon" "htcacheclean" | |
node + start_htcacheclean | |
node + [ "$VERBOSE" != no ] && log_end_msg $? | |
node + fi | |
node + ;; | |
node + 2) | |
node + log_failure_msg | |
node + print_error_msg | |
node + exit 1 | |
node + ;; | |
node + esac | |
node + ;; | |
node + stop|graceful-stop) | |
node + log_daemon_msg "Stopping $DESC" "$NAME" | |
node + do_stop "$1" | |
node + RET_STATUS=$? | |
node + case "$RET_STATUS" in | |
node + 0|1) | |
node + log_success_msg | |
node + [ "$VERBOSE" != no ] && [ $RET_STATUS = 1 ] && log_warning_msg "Server was not running" | |
node + ;; | |
node + 2) | |
node + log_failure_msg | |
node + print_error_msg | |
node + exit 1 | |
node + ;; | |
node + esac | |
node + print_error_msg | |
node + | |
node + if check_htcacheclean ; then | |
node + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping HTTP cache cleaning daemon" "htcacheclean" | |
node + stop_htcacheclean | |
node + [ "$VERBOSE" != no ] && log_end_msg $? | |
node + fi | |
node + | |
node + ;; | |
node + status) | |
node + status_of_proc -p $PIDFILE "apache2" "$NAME" | |
node + exit $? | |
node + ;; | |
node + reload|force-reload|graceful) | |
node + log_daemon_msg "Reloading $DESC" "$NAME" | |
node + do_reload | |
node + RET_STATUS=$? | |
node + case "$RET_STATUS" in | |
node + 0|1) | |
node + log_success_msg | |
node + [ "$VERBOSE" != no ] && [ $RET_STATUS = 1 ] && log_warning_msg "Server was already running" | |
node + ;; | |
node + 2) | |
node + log_failure_msg | |
node + print_error_msg | |
node + exit 1 | |
node + ;; | |
node + esac | |
node + print_error_msg | |
node + ;; | |
node + restart) | |
node + log_daemon_msg "Restarting $DESC" "$NAME" | |
node + do_stop stop | |
node + case "$?" in | |
node + 0|1) | |
node + do_start | |
node + case "$?" in | |
node + 0) | |
node + log_end_msg 0 | |
node + ;; | |
node + 1|*) | |
node + log_end_msg 1 # Old process is still or failed to running | |
node + print_error_msg | |
node + exit 1 | |
node + ;; | |
node + esac | |
node + ;; | |
node + *) | |
node + # Failed to stop | |
node + log_end_msg 1 | |
node + print_error_msg | |
node + exit 1 | |
node + ;; | |
node + esac | |
node + ;; | |
node + start-htcacheclean) | |
node + log_daemon_msg "Starting htcacheclean" | |
node + start_htcacheclean | |
node + log_end_msg $? | |
node + exit $? | |
node + ;; | |
node + stop-htcacheclean) | |
node + log_daemon_msg "Stopping htcacheclean" | |
node + stop_htcacheclean | |
node + log_end_msg $? | |
node + exit $? | |
node + ;; | |
node + *) | |
node + echo "Usage: $SCRIPTNAME {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean}" >&2 | |
node + exit 3 | |
node + ;; | |
node +esac | |
node + | |
node +exit 0 | |
node + | |
node +# vim: syntax=sh ts=4 sw=4 sts=4 sr noet | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * service[apache2-customers] action start | |
node - start service service[apache2-customers] | |
node * service[apache2-customers] action enable | |
node - enable service service[apache2-customers] | |
node | |
node * httpd_config_debian[customers] action create | |
node * directory[/etc/apache2-customers/conf-available] action create (up to date) | |
node * template[/etc/apache2-customers/conf-available/customers.conf] action create | |
node - create new file /etc/apache2-customers/conf-available/customers.conf | |
node - update content in file /etc/apache2-customers/conf-available/customers.conf from none to ef0763 | |
node --- /etc/apache2-customers/conf-available/customers.conf 2016-10-24 06:30:02.102478618 +0000 | |
node +++ /etc/apache2-customers/conf-available/.customers.conf20161024-1344-11o2az0 2016-10-24 06:30:02.102478618 +0000 | |
node @@ -1 +1,27 @@ | |
node +<VirtualHost *:80> | |
node + ServerName node | |
node + ServerAdmin 'ops@example.com' | |
node + | |
node + DocumentRoot /var/www/customers/public_html | |
node + <Directory "/"> | |
node + Options FollowSymLinks | |
node + AllowOverride None | |
node + </Directory> | |
node + <Directory /var/www/customers/public_html > | |
node + Options Indexes FollowSymLinks MultiViews | |
node + AllowOverride None | |
node + Require all granted | |
node + </Directory> | |
node + | |
node + ErrorLog /var/log/apache2/error.log | |
node + | |
node + LogLevel warn | |
node + | |
node + CustomLog /var/log/apache2/access.log combined | |
node + ServerSignature Off | |
node + | |
node + AddType application/x-httpd-php .php | |
node + AddType application/x-httpd-php-source .phps | |
node + DirectoryIndex index.php index.html | |
node +</VirtualHost> | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * directory[/etc/apache2-customers/conf-enabled] action create (up to date) | |
node * link[/etc/apache2-customers/conf-enabled/customers.conf] action create | |
node - create symlink at /etc/apache2-customers/conf-enabled/customers.conf to /etc/apache2-customers/conf-available/customers.conf | |
node | |
node * directory[/var/www/customers/public_html] action create | |
node - create new directory /var/www/customers/public_html | |
node * template[/var/www/customers/public_html/index.php] action create | |
node - create new file /var/www/customers/public_html/index.php | |
node - update content in file /var/www/customers/public_html/index.php from none to 714a5f | |
node --- /var/www/customers/public_html/index.php 2016-10-24 06:30:02.122478618 +0000 | |
node +++ /var/www/customers/public_html/.index.php20161024-1344-1rchl8s 2016-10-24 06:30:02.118478618 +0000 | |
node @@ -1 +1,56 @@ | |
node +<!DOCTYPE html> | |
node +<html lang="en"> | |
node +<head> | |
node + <title>Customers</title> | |
node + <style> | |
node + table, th, td { | |
node + border: 1px solid black; | |
node + border-collapse: collapse; | |
node + font-family: sans-serif; | |
node + padding: 5px; | |
node + } | |
node + table tr:nth-child(even) td { | |
node + background-color: #95c7ea; | |
node + } | |
node + </style> | |
node +</head> | |
node +<body> | |
node +<?php | |
node +$servername = "127.0.0.1"; | |
node +$username = "db_admin"; | |
node +$password = "NvdP+qHsaSZblFT32nml7w=="; | |
node +$dbname = "my_company"; | |
node + | |
node +// Create connection | |
node +$conn = new mysqli($servername, $username, $password, $dbname); | |
node + | |
node +// Check connection | |
node +if ($conn->connect_error) { | |
node + die("Connection failed: " . $conn->connect_error); | |
node +} | |
node + | |
node +// Perform SQL query | |
node +$sql = "SELECT * FROM customers"; | |
node +$result = $conn->query($sql); | |
node + | |
node +if ($result->num_rows > 0) { | |
node + echo "<table>\n"; | |
node + // Output data of each row | |
node + while($row = $result->fetch_assoc()) { | |
node + echo "\t<tr>\n"; | |
node + foreach ($row as $col_value) { | |
node + print "\t\t<td>$col_value</td>\n"; | |
node + } | |
node + echo "\t</tr>\n"; | |
node + } | |
node + echo "</table>"; | |
node +} else { | |
node + echo "0 results"; | |
node +} | |
node + | |
node +// Close connection | |
node +$conn->close(); | |
node +?> | |
node +</body> | |
node +</html> | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'web_admin' | |
node - change group from '' to 'web_admin' | |
node * httpd_module_debian[php5] action create | |
node * apt_package[libapache2-mod-php5] action install | |
node - install version 5.5.9+dfsg-1ubuntu4.20 of package libapache2-mod-php5 | |
node * directory[/etc/apache2-customers/mods-available] action create (up to date) | |
node * directory[/etc/apache2-customers/mods-enabled] action create (up to date) | |
node * template[/etc/apache2-customers/mods-available/php5.load] action create | |
node - create new file /etc/apache2-customers/mods-available/php5.load | |
node - update content in file /etc/apache2-customers/mods-available/php5.load from none to d3f858 | |
node --- /etc/apache2-customers/mods-available/php5.load 2016-10-24 06:30:08.122478576 +0000 | |
node +++ /etc/apache2-customers/mods-available/.php5.load20161024-1344-4z4bgw 2016-10-24 06:30:08.122478576 +0000 | |
node @@ -1 +1,2 @@ | |
node +LoadModule php5_module /usr/lib/apache2/modules/libphp5.so | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * link[/etc/apache2-customers/mods-enabled/php5.load] action create | |
node - create symlink at /etc/apache2-customers/mods-enabled/php5.load to /etc/apache2-customers/mods-available/php5.load | |
node | |
node * apt_package[php5-mysql] action install | |
node - install version 5.5.9+dfsg-1ubuntu4.20 of package php5-mysql | |
node Recipe: awesome_customers_ubuntu::database | |
node * mysql_client[default] action create | |
node * apt_package[default :create mysql-client-5.5] action install | |
node - install version 5.5.52-0ubuntu0.14.04.1 of package mysql-client-5.5 | |
node * apt_package[default :create libmysqlclient-dev] action install | |
node - install version 5.5.52-0ubuntu0.14.04.1 of package libmysqlclient-dev | |
node | |
node * mysql_service[default] action create | |
node * apt_package[default :create mysql-server-5.5] action install | |
node - install version 5.5.52-0ubuntu0.14.04.1 of package mysql-server-5.5 | |
node * apt_package[perl-Sys-Hostname-Long] action nothing (skipped due to action :nothing) | |
node * execute[Initial DB setup script] action nothing (skipped due to action :nothing) | |
node * service[default :create mysql] action stop | |
node - stop service service[default :create mysql] | |
node * service[default :create mysql] action disable | |
node - disable service service[default :create mysql] | |
node * apt_package[default :create apparmor] action install (up to date) | |
node * directory[default :create /etc/apparmor.d/local/mysql] action create | |
node - create new directory /etc/apparmor.d/local/mysql | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * template[default :create /etc/apparmor.d/local/usr.sbin.mysqld] action create | |
node - update content in file /etc/apparmor.d/local/usr.sbin.mysqld from 196444 to 06cb51 | |
node --- /etc/apparmor.d/local/usr.sbin.mysqld 2016-10-24 06:30:33.518478399 +0000 | |
node +++ /etc/apparmor.d/local/.usr.sbin.mysqld20161024-1344-m5q94b 2016-10-24 06:30:35.314478387 +0000 | |
node @@ -1,3 +1,2 @@ | |
node -# Site-specific additions and overrides for usr.sbin.mysqld. | |
node -# For more details, please see /etc/apparmor.d/local/README. | |
node +#include <local/mysql> | |
node * service[default :create apparmor] action restart | |
node - restart service service[default :create apparmor] | |
node * template[default :create /etc/apparmor.d/usr.sbin.mysqld] action create | |
node - update content in file /etc/apparmor.d/usr.sbin.mysqld from c870d4 to edc1e7 | |
node --- /etc/apparmor.d/usr.sbin.mysqld 2016-09-13 03:53:08.000000000 +0000 | |
node +++ /etc/apparmor.d/.usr.sbin.mysqld20161024-1344-bifafv 2016-10-24 06:30:36.734478377 +0000 | |
node @@ -35,8 +35,10 @@ | |
node /var/log/mysql/* rw, | |
node /var/run/mysqld/mysqld.pid rw, | |
node /var/run/mysqld/mysqld.sock w, | |
node + /var/run/mysqld/mysqld.sock.lock rw, | |
node /run/mysqld/mysqld.pid rw, | |
node /run/mysqld/mysqld.sock w, | |
node + /run/mysqld/mysqld.sock.lock rw, | |
node | |
node /sys/devices/system/cpu/ r, | |
node | |
node * service[default :create apparmor] action restart | |
node - restart service service[default :create apparmor] | |
node * template[default :create /etc/apparmor.d/local/mysql/default] action create | |
node - create new file /etc/apparmor.d/local/mysql/default | |
node - update content in file /etc/apparmor.d/local/mysql/default from none to eabd97 | |
node --- /etc/apparmor.d/local/mysql/default 2016-10-24 06:30:38.154478367 +0000 | |
node +++ /etc/apparmor.d/local/mysql/.default20161024-1344-1lyxhyq 2016-10-24 06:30:38.154478367 +0000 | |
node @@ -1 +1,15 @@ | |
node +/etc/mysql-default/*.pem r, | |
node +/etc/mysql-default/conf.d/ r, | |
node +/etc/mysql-default/conf.d/* r, | |
node +/etc/mysql-default/my.cnf r, | |
node +/var/log/mysql-default/ r, | |
node +/var/log/mysql-default/* rw, | |
node +/var/lib/mysql-default/ r, | |
node +/var/lib/mysql-default/** rwk, | |
node +/run/mysql-default/** rw, | |
node +/run/mysql-default/mysqld.pid rw, | |
node +/run/mysql-default/mysqld.sock rw, | |
node +/tmp/mysql-default/ r, | |
node +/tmp/mysql-default/my.sql r, | |
node +/tmp/* rw, | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * service[default :create apparmor] action restart | |
node - restart service service[default :create apparmor] | |
node * service[default :create apparmor] action nothing (skipped due to action :nothing) | |
node * group[default :create mysql] action create (up to date) | |
node * user[default :create mysql] action create (up to date) | |
node * file[default :create /etc/mysql/my.cnf] action delete | |
node - delete file /etc/mysql/my.cnf | |
node * file[default :create /etc/my.cnf] action delete (up to date) | |
node * link[default :create /usr/share/my-default.cnf] action create | |
node - create symlink at /usr/share/my-default.cnf to /etc/mysql-default/my.cnf | |
node * directory[default :create /etc/mysql-default] action create | |
node - create new directory /etc/mysql-default | |
node - change mode from '' to '0750' | |
node - change owner from '' to 'mysql' | |
node - change group from '' to 'mysql' | |
node * directory[default :create /etc/mysql-default/conf.d] action create | |
node - create new directory /etc/mysql-default/conf.d | |
node - change mode from '' to '0750' | |
node - change owner from '' to 'mysql' | |
node - change group from '' to 'mysql' | |
node * directory[default :create /run/mysql-default] action create | |
node - create new directory /run/mysql-default | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'mysql' | |
node - change group from '' to 'mysql' | |
node * directory[default :create /var/log/mysql-default] action create | |
node - create new directory /var/log/mysql-default | |
node - change mode from '' to '0750' | |
node - change owner from '' to 'mysql' | |
node - change group from '' to 'mysql' | |
node * directory[default :create /var/lib/mysql-default] action create | |
node - create new directory /var/lib/mysql-default | |
node - change mode from '' to '0750' | |
node - change owner from '' to 'mysql' | |
node - change group from '' to 'mysql' | |
node * template[default :create /etc/mysql-default/my.cnf] action create | |
node - create new file /etc/mysql-default/my.cnf | |
node - update content in file /etc/mysql-default/my.cnf from none to 3bd52d | |
node --- /etc/mysql-default/my.cnf 2016-10-24 06:30:39.582478357 +0000 | |
node +++ /etc/mysql-default/.my.cnf20161024-1344-3lzw82 2016-10-24 06:30:39.582478357 +0000 | |
node @@ -1 +1,23 @@ | |
node +# Chef generated my.cnf for instance mysql-default | |
node + | |
node +[client] | |
node +default-character-set = utf8 | |
node +port = 3306 | |
node +socket = /run/mysql-default/mysqld.sock | |
node + | |
node +[mysql] | |
node +default-character-set = utf8 | |
node + | |
node +[mysqld] | |
node +user = mysql | |
node +pid-file = /run/mysql-default/mysqld.pid | |
node +socket = /run/mysql-default/mysqld.sock | |
node +port = 3306 | |
node +datadir = /var/lib/mysql-default | |
node +tmpdir = /tmp | |
node +log-error = /var/log/mysql-default/error.log | |
node +!includedir /etc/mysql-default/conf.d | |
node + | |
node +[mysqld_safe] | |
node +socket = /run/mysql-default/mysqld.sock | |
node - change mode from '' to '0600' | |
node - change owner from '' to 'mysql' | |
node - change group from '' to 'mysql' | |
node * bash[default :create initial records] action run | |
node - execute "bash" "/tmp/chef-script20161024-1344-5dxh3c" | |
node | |
node * mysql_service[default] action start | |
node * template[default :start /usr/sbin/mysql-default-wait-ready] action create | |
node - create new file /usr/sbin/mysql-default-wait-ready | |
node - update content in file /usr/sbin/mysql-default-wait-ready from none to a11716 | |
node --- /usr/sbin/mysql-default-wait-ready 2016-10-24 06:30:42.742478335 +0000 | |
node +++ /usr/sbin/.mysql-default-wait-ready20161024-1344-samxsv 2016-10-24 06:30:42.742478335 +0000 | |
node @@ -1 +1,23 @@ | |
node +#!/bin/sh | |
node + | |
node +# Wait for the server to come up | |
node +ret=0 | |
node +while /bin/true; do | |
node + RESPONSE=`/usr/bin/mysqladmin --no-defaults --socket="/run/mysql-default/mysqld.sock" --user=UNKNOWN_MYSQL_USER ping 2>&1` | |
node + mret=$? | |
node + if [ $mret -eq 0 ]; then | |
node + break | |
node + fi | |
node + # exit codes 1, 11 (EXIT_CANNOT_CONNECT_TO_SERVICE) are expected, | |
node + # anything else suggests a configuration error | |
node + if [ $mret -ne 1 -a $mret -ne 11 ]; then | |
node + ret=1 | |
node + break | |
node + fi | |
node + # "Access denied" also means the server is alive | |
node + echo "$RESPONSE" | grep -q "Access denied for user" && break | |
node + sleep 1 | |
node +done | |
node + | |
node +exit $ret | |
node - change mode from '' to '0755' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * template[default :start /etc/init/mysql-default.conf] action create | |
node - create new file /etc/init/mysql-default.conf | |
node - update content in file /etc/init/mysql-default.conf from none to b6b61d | |
node --- /etc/init/mysql-default.conf 2016-10-24 06:30:42.754478335 +0000 | |
node +++ /etc/init/.mysql-default.conf20161024-1344-1se2r3x 2016-10-24 06:30:42.754478335 +0000 | |
node @@ -1 +1,27 @@ | |
node +# mysql-default Service | |
node + | |
node +description "MySQL service mysql-default" | |
node +author "chef-client" | |
node + | |
node +start on runlevel [2345] | |
node +stop on starting rc RUNLEVEL=[016] | |
node + | |
node +respawn | |
node +respawn limit 2 5 | |
node + | |
node +env HOME=/etc/mysql-default | |
node +umask 007 | |
node + | |
node +kill timeout 300 | |
node + | |
node +pre-start script | |
node +[ -d /run/mysql-default ] || install -m 755 -o mysql -g mysql -d /run/mysql-default | |
node +[ -d /run/mysql-default ] || install -m 755 -o mysql -g mysql -d /run/mysql-default | |
node +end script | |
node + | |
node +exec /usr/sbin/mysqld --defaults-file=/etc/mysql-default/my.cnf | |
node + | |
node +post-start script | |
node +/usr/sbin/mysql-default-wait-ready | |
node +end script | |
node - change mode from '' to '0644' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * service[default :start mysql-default] action start | |
node - start service service[default :start mysql-default] | |
node | |
node * mysql2_chef_gem[default] action install | |
node Recipe: build-essential::default | |
node * build_essential[install_packages] action install | |
node * apt_package[autoconf, binutils-doc, bison, build-essential, flex, gettext, ncurses-dev] action install | |
node - install version 2.69-6 of package autoconf | |
node - install version 2.24-5ubuntu14.1 of package binutils-doc | |
node - install version 2:3.0.2.dfsg-2 of package bison | |
node - install version 11.6ubuntu6 of package build-essential | |
node - install version 2.5.35-10.1ubuntu2 of package flex | |
node - install version 0.18.3.1-1ubuntu3 of package gettext | |
node - install version (none) of package ncurses-dev | |
node | |
node * mysql_client[default] action create | |
node * apt_package[default :create mysql-client-5.5] action install (up to date) | |
node * apt_package[default :create libmysqlclient-dev] action install (up to date) | |
node (up to date) | |
node * gem_package[mysql2] action install | |
node - install version 0.3.17 of package mysql2 | |
node | |
node Recipe: awesome_customers_ubuntu::database | |
node * mysql_database[my_company] action create | |
node - Creating schema 'my_company' | |
node * mysql_database_user[db_admin] action create | |
node - Creating user 'db_admin'@'127.0.0.1' | |
node * mysql_database_user[db_admin] action grant | |
node - Granting privs for 'db_admin'@'127.0.0.1' | |
node * cookbook_file[/var/chef/cache/create-tables.sql] action create | |
node - create new file /var/chef/cache/create-tables.sql | |
node - update content in file /var/chef/cache/create-tables.sql from none to 326217 | |
node --- /var/chef/cache/create-tables.sql 2016-10-24 06:31:04.514478183 +0000 | |
node +++ /var/chef/cache/.create-tables.sql20161024-1344-9l2pob 2016-10-24 06:31:04.514478183 +0000 | |
node @@ -1 +1,11 @@ | |
node +CREATE TABLE customers( | |
node + id CHAR (32) NOT NULL, | |
node + PRIMARY KEY(id), | |
node + first_name VARCHAR(64), | |
node + last_name VARCHAR(64), | |
node + email VARCHAR(64) | |
node +); | |
node + | |
node +INSERT INTO customers ( id, first_name, last_name, email ) VALUES ( uuid(), 'Jane', 'Smith', 'jane.smith@example.com' ); | |
node +INSERT INTO customers ( id, first_name, last_name, email ) VALUES ( uuid(), 'Dave', 'Richards', 'dave.richards@example.com' ); | |
node - change mode from '' to '0600' | |
node - change owner from '' to 'root' | |
node - change group from '' to 'root' | |
node * execute[initialize my_company database] action run | |
node - execute mysql -h 127.0.0.1 -u db_admin -pNvdP+qHsaSZblFT32nml7w== -D my_company < /var/chef/cache/create-tables.sql | |
node Recipe: firewall::default | |
node * firewall[default] action restart | |
node (skipped due to only_if) | |
node (skipped due to only_if) | |
node (skipped due to only_if) | |
node (skipped due to only_if) | |
node * file[/etc/default/ufw-chef.rules] action create | |
node - update content in file /etc/default/ufw-chef.rules from fa85ee to 7510cb | |
node --- /etc/default/ufw-chef.rules 2016-10-24 06:29:50.446478699 +0000 | |
node +++ /etc/default/.ufw-chef.rules20161024-1344-ccprd1 2016-10-24 06:31:04.594478183 +0000 | |
node @@ -1,2 +1,4 @@ | |
node -# created by chef to allow service to start | |
node +# position 50 | |
node +ufw allow in proto tcp to any port 22 from 0.0.0.0/0 | |
node +ufw allow in proto tcp to any port 80 from any | |
node | |
node Recipe: awesome_customers_ubuntu::web | |
node * httpd_service_debian_sysvinit[customers] action restart | |
node * service[apache2-customers] action restart | |
node - restart service service[apache2-customers] | |
node | |
node | |
node Running handlers: | |
node Running handlers complete | |
node | |
node Deprecated features used! | |
node version nil currently does not overwrite the value of version. This will change in Chef 13, and the value will be set to nil instead. Please change your code to explicitly accept nil using "property :version, [MyType, nil]", or stop setting this value to nil. at 1 location: | |
node - /var/chef/cache/cookbooks/mysql2_chef_gem/libraries/provider_mysql2_chef_gem_mysql.rb:17:in `block (2 levels) in <class:Mysql>' | |
node | |
node Chef Client finished, 147/242 resources updated in 01 minutes 36 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment