Slack Howto
| 
 Slack Howto
 
Version: 1.0 
 
ÀÛ¼ºÀÚ: À̵·Çö(ȯ°ñÅ»ÅÂ)  
 http://blog.easysw.net 
1.1. Slack À̶õ ¶
 1.3. Slack Ư¡ ¶
 1.4. Slack subrole ±â´É ¶
 1.5. Slack ¿ëµµ ¶
 2.1. Slack Master install ¶wget http://slack.googlecode.com/files/slack-0.15.2.tar.gz tar xfzp slack-0.15.2.tar.gz cd slack-0.15.2 make make install ls /etc/slack.conf 2.2. Slack Master rsyncd.conf ¶cat > /etc/rsyncd.conf <<END [slack] path = /data/slack comment; = slack test uid = 1000 gid = 1000 read only = true # ÀϹݰèÁ¤Àº ~/rsyncd.conf »ý¼º, ÇÏ´Ü ÁÖ¼®ÇØÁ¦ # use chroot = false END [ -f /etc/rsyncd.conf ] && chown root:root /etc/rsyncd.conf [ -f /etc/rsyncd.conf ] && chmod 600 /etc/rsyncd.conf 2.3. Slack Master slack.conf ¶ROLE_LIST=etc/roles.conf # ±âº» ·Ñ Á¤ÀÇ SOURCE=slack-master::slack # master ÁÖ¼Ò::rsync ¸ðµâ¸í CACHE=/var/cache/slack STAGE=/var/lib/slack/stage ROOT=/ BACKUP_DIR=/var/lib/slack/backups 2.4. Slack Master roles.conf ¶# /data/slack/etc/roles.conf # Àû¿ë ÇÒ È£½ºÆ® ¸í : ±âº» Àû¿ë role name web1.sfo.example.com: webserver web2.sfo.example.com: webserver web1.hyd.example.com: webserver.hyd web1.hyd.example.com: webserver.hyd 2.5. Slack Master µð·ºÅ丮 ±¸Á¶ ¶
/data/slack/roles/
	|-- etc
	|   `-- roles.conf
	`-- roles
	    `-- download
	       |-- files.configsync 
	       |   |-- etc
	       |   |   `-- sysctl.conf
	       |   |-- root
	       |   |   |-- dot.bashrc
	       |   |   `-- dot.vimrc
               |-- files.install
               `-- scripts
                   |-- functions
                   |-- postinstall
                   `-- preinstall
2.6. Slack Slave ¼³Á¤ ¶
 61.110.xxx.xxx slack-master 
 wget http://slack.googlecode.com/files/slack-0.15.2.tar.gz tar xfzp slack-0.15.2.tar.gz cd slack-0.15.2 make make install 
 slack download.configsync download.daemonrestart 2.7. Slack ½ÇÇà¼ø¼ ¶
# ÇØ´ç roleÀÇ file, scripts¸¦ ·ÎÄ÷Πµ¿±âÈ
    slack: installing roles: download.configsync
    slack: sync download.configsync
    slack: stage files download.configsync
    slack: stage scripts download.configsync
# scripts¿¡¼ preinstall, fixfiles ½ÇÇà
    slack: preinstall download.configsync
    slack: fixfiles download.configsync
# ¹é¾÷ µð·ºÅ丮 »ý¼º
# files Àû¿ë
    slack: install download.configsync
# scripts¿¡¼ postinstall ½ÇÇà
    slack: postinstall download.configsync
3.1. ½Ã¿¬³»¿ë ¶
 4. Being Happy ¶
 5. ÂüÁ¶»çÀÌÆ® ¶
  | 











![[http]](/imgs/http.png)

