Skip to content

Instantly share code, notes, and snippets.

@ogaty
Last active January 15, 2019 11:30
Show Gist options
  • Save ogaty/f9aa8011521e28e4ea27cb53ab7819a6 to your computer and use it in GitHub Desktop.
Save ogaty/f9aa8011521e28e4ea27cb53ab7819a6 to your computer and use it in GitHub Desktop.
goss centosデフォルトはrubyのバージョンのせいでserverspecが入らないので簡単に入れられるgossのほうが好き
user:
{{ username }}:
exists: true
home: /home/{{ username }}
port:
tcp:20123:
listening: true
package:
git:
installed: true
php{{ php_version }}:
installed: true
php{{ php_version }}-mbstring:
installed: true
php{{ php_version }}-xml:
installed: true
php{{ php_version }}-mysql:
installed: true
php{{ php_version }}-gd:
installed: true
php{{ php_version }}-sqlite3:
installed: true
mariadb-server:
installed: true
redis-server:
installed: true
service:
sshd:
enabled: true
running: true
apache2:
enabled: true
running: true
mariadb:
enabled: true
running: true
redis:
enabled: true
running: true
file:
/usr/local/bin/composer:
exists: true
/key/id_rsa.github:
exists: true
/key:
exists: true
/home/{{ username }}/.vimrc:
exists: true
/home/{{ username }}/.mybashrc:
exists: true
/home/{{ username }}/.mybash_alias:
exists: true
/etc/.git:
exists: true
/usr/bin/node:
exists: true
/etc/apache2/envvars:
exists: true
contains:
- "export APACHE_RUN_USER={{ username }}"
/etc/apache2/apache2.conf:
exists: true
contains:
- "Mutex file:${APACHE_LOCK_DIR} default"
/etc/php/{{ php_version }}/apache2/php.ini:
exists: true
contains:
- "Asia/Tokyo"
/etc/php/{{ php_version }}/cli/php.ini:
exists: true
contains:
- "Asia/Tokyo"
/swiss/swetest2:
exists: true
/swapfile:
exists: true
command:
date:
exit-status: 0
stdout:
- /JST/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment