You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Blog Wednesday, August 12th, 2015 For those of you that are using Ansible to manage hosts, you may have noticed you can use the setup module to gather facts about the hosts in your inventory: $ ansible -m setup --tree out/ all $ ls out centos.dev.local eek.electricmonk.nl zoltar.electricmonk.nl debian.dev.local jib.electricmonk.nl $ head out/debian.dev.local { "ansible_facts": { "ansible_all_ipv4_
Ansible 㨠Mackerel API ãçµã¿åããã¦ã1000å°è¦æ¨¡ã®ãµã¼ã群ã«å¯¾ãã¦åæã«ããã±ã¼ã¸ã®æ´æ°ããã®ä»ã®ãµã¼ããªãã¬ã¼ã·ã§ã³ã®ããã®æ¹æ³ãç´¹ä»ãã¾ãã ã¿ã¤ãã«ã« Mackerel ã¨ããã¾ãããããã»ã© Mackerel ã«ä¾åããªã話ã§ãã (Ansibleã¨Dockerã«ãã1000å°åæSSHãªãã¬ã¼ã·ã§ã³ç°å¢ - ããããããã°ã«ç¶ç·¨ãæ¸ãã¦ãã¾ãã) èæ¯ ç¤¾å ã§ã¯ããµã¼ãæ§æ管çãã¼ã«ã¨ã㦠Chef ã使ç¨ãã¦ãã¾ãã Chef Server ã¯éç¨ã大å¤ãªã®ã§ä½¿ç¨ãã¦ããããknife-solo 㨠Mackerel APIãçµã¿åããã¦ãã¹ã㨠Chef role ã¨ã®ãããã³ã°ã« Mackerel ã®ãã¼ã«æ å ±ãç¨ãã¦ãã¾ãã ã¾ããMackerel ã® Ruby ã¯ã©ã¤ã¢ã³ããå©ç¨ã㦠recipe å 㧠API ãå©ãã¦ãMackerel ã
Goã¯, ã¯ãã¹ãã©ãããã©ã¼ã ã³ã³ãã¤ã«ãããã©ã«ãå ¥ã£ã¦ãã®ã§, ãã¼ã«ã«ã§, ãã¤ããªãä½æãã¦, ããããããã¤ããããã«ãã¾ãã. ä¸ã®ãããªæé ã§ãããã¤ãã¾ã. Macã§ã³ã³ãã¤ã«ãã¦, Linux-amd64ç¨ã®ãã¤ããªçæ ãã¤ããªããµã¼ãã«ãããã¤(ã³ãã¼) ã¢ããªã®ãªã¹ã¿ã¼ã(supervisorã§åèµ·å) ãå®è¡ããAnsibleã¿ã¹ã¯ãä½ãã¾ãã. Playbookã¯ä»¥ä¸ã®ããã«ãªãã¾ãã. deploy.yml --- - hosts: local connection: local tasks: - include: build.yml - hosts: app user: "{{ user }}" tasks: - include: update_binary.yml - include: restart.yml åã¿ã¹ã¯ã«ã¤ãã¦, 説æãã¦ãã¾ã. Li
Ansible ã¨ãããµã¼ãã¼ã®è¨å®ã管çãããã¼ã«ã®èª¬æãããããæ§æ管ç (CM: Configuration Management) ã«ã«ãã´ã©ã¤ãºããããã®ã§ãPuppet ã Chef ã®è¦ªæã¿ãããªãã®ã¨èãã¦ããããã°ã ããããã£ã¦ãã æ¦è¦ ãªã¼ãéçºè 㯠Michael DeHaan ã§ãç¾è·ã® AnsibleWorks ã®å㯠Redhat 㧠Cobbler ã Func ã«æºãã£ã¦ããããPuppet labs ã§ãããã¯ãããã¼ã¸ã£ã¼ããããã¦ããã¨ããçµæ´ã®æã¡ä¸»ã Ansible 㯠Python ã§æ¸ããã¦ãããåãã¸ã£ã³ã«ã§ Python 製ã¨ãã㨠Salt ãæåãChef ã®å ´åãã¬ã·ããæ¸ãããã«ã¯ Ruby ã®ç¥èãå¿ è¦ã¨ãªã£ã¦ãããã©ãAnsible ã¯ã©ããªè¨èªã§ãã¢ã¸ã¥ã¼ã«ãæ¸ããããã«ãªã£ã¦ããã®ã§ãéç¨ã«ããã£ã¦ Python ã®ç¥èã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}