· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Slack Howto

Slack Howto


Version: 1.0

ÀÛ¼ºÀÚ: À̵·Çö(ȯ°ñÅ»ÅÂ) [http]http://blog.easysw.net


1. Slack °³¿ä

1.1. Slack À̶õ

  • °ÔÀ¸¸¥ °ü¸®ÀÚ¸¦ À§ÇØ µðÀÚÀÎ µÈ ½Ã½ºÅÛ
  • 2006³â È£ÁÖ À¯´Ð½º À¯Àú ±×·ì (AUUG) ÄÁÆÛ·±½º¿¡¼­ GoogleÀº SlackÀ» ¼öÁ¤ÇÏ¿© ¼­¹ö Ŭ·¯½ºÅ͸¦ °ü¸®ÇÑ´Ù°í °ø°³ÀûÀ¸·Î ¹ßÇ¥

1.2. Slack ±¸Á¶

slack-02.jpg
[JPG image (34.97 KB)]


1.3. Slack Ư¡

  • CUI ¼ÒÇÁÆ®¿þ¾î ¹èÆ÷ ½Ã½ºÅÛ
  • Áß¾ÓÁýÁßÈ­ µÈ ¼³Á¤ ÀúÀå¼Ò È°¿ë
  • ¼±Åà µÈ ½Ã½ºÅÛ¿¡ ¼³Á¤ Àü°³ °¡´É
  • Sub Role ±â´É Á¦°ø
  • slack master·Î ºÎÅÍ ¼³Á¤ µ¿±âÈ­ ¹æ¹ý
    • slack role.sub-role
    • cronÀ» »ç¿ëÇÏ¿© ÁÖ±âÀûÀ¸·Î ½ÇÇà
  • Rsync over SSH : SSH ÀÎÁõÅ°¸¦ »çÀü¿¡ ¹èÆ÷
  • SSH °èÁ¤¿¡ µû¶ó rsyncd.conf À§Ä¡ Â÷ÀÌ
    • root : /etc/rsyncd.conf
    • ÀϹݰèÁ¤ : ~/rsyncd.conf
  • files´Â sub role¿¡ µû¶ó Àû¿ëµÇÁö¸¸, scripts´Â Àμö·Î ³Ñ°ÜÁØ role À̸§º°·Î µ¿ÀÛÇÔ

1.4. Slack subrole ±â´É

  • ºÎ¸ð ·Ñ µÚ¿¡ .À» Ãß°¡ÇÏ¿© »ý¼º
    • .../roles/myrole/files
    • .../roles/myrole/files.foo
    • .../roles/myrole/files.foo.bar
  • ÆÄÀÏ Ãß°¡´Â °¡´ÉÇÏÁö¸¸ »èÁ¦´Â ¾ÈµÊ
  • µ¿ÀÏÇÑ À̸§ÀÇ ºÎ¸ð ÆÄÀÏÀ» ¿ÏÀüÈ÷ ´ëüÇÔ
  • ¿ÀÁ÷ ÇϳªÀÇ ºÎ¸ð ·Ñ¸¸ »ó¼Ó ÇÔ (´ÙÁß»ó¼Ó X)
  • Á¸ÀçÇÏÁö ¾Ê´Â sub roleÀº ºÎ¸ð·ÑÀ» »ó¼Ó ÇÔ

1.5. Slack ¿ëµµ

  • ´Ù¼öÀÇ ¼³Á¤ ÆÄÀÏÀ» Çϳª·Î ÃëÇÕ
  • ÆÐÅ°Áö ¼³Ä¡ ¹× ¾÷±×·¹À̵å
  • °¢Á¾ ¼³Á¤ ¹èÆ÷
  • µ¥¸ó ±¸µ¿ ¹× Á¤Áö
  • ±âŸ ¿øÇÏ´Â Ãß°¡ ÀÛ¾÷ ½ÇÇà

2. Slack Install & Configuration

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 ¼³Á¤

  • /etc/hosts
61.110.xxx.xxx slack-master

  • Slack 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

  • test
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

2.8. Slack ¼­ºñ½º Àû¿ë

slack-03.jpg
[JPG image (57.53 KB)]


3. Slack ½Ã¿¬

3.1. ½Ã¿¬³»¿ë

  1. Slack Master ¼³Á¤
  2. Slack Slave ¼³Á¤
  3. ¼³Á¤ ÀúÀå¼Ò¿¡ ¼­ºñ½º ¼³Á¤ º¯°æ
  4. cssh, dist »ç¿ëÇÏ¿© ¼³Á¤¹èÆ÷
  5. roles.conf »ç¿ëÇÏ¿© ¼³Á¤ ¹èÆ÷

4. Being Happy

  1. ¹Ýº¹ÀûÀÎ ¼³Ä¡ ¹× ¼³Á¤ ÀÛ¾÷¿¡¼­ Å»Ãâ
  2. ´ë±Ô¸ð ÀÛ¾÷ ¹× º¹ÀâÇÑ ÀÛ¾÷½Ã Àå¾Ö°¨¼Ò
  3. ¿¹Ãø ºÒ°¡´ÉÇÑ Æ®·¡ÇÈ ÆøÁÖ¿¡ ´ëó
  4. ³×Æ®¿öÅ© À̵¿, OS À缳ġ, ¼­ºñ½º ¿ëµµ º¯°æµîÀÇ ¾÷¹« °£¼ÒÈ­
  5. Áñ°Å¿î ÁÖ¸» º¸³»±â¡¦^^


ID
Password
Join
You will be successful in love.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-01-03 19:17:58
Processing time 0.0076 sec