03/29/2015 Developers.IO 2015 http://devio2015.classmethod.jp/ Packer / Ansible / CloudFormation / AWSRead less
ã¯ããã« ãã®ã¨ã³ããªã¯é常ã«ãã¸ãã£ãã§æè¡çãªãã£ã¬ã³ã¸ã«é¢ããã¾ã¨ãã§ããæ±äººã¨ã³ããªã§ãããã¾ãã ã¾ã¨ã æ¨å¹´å¾åãããæ¥æé·ãããµã¼ãã¹ãæ¯ãããã âã©ãªã³ãã¬â ãªç°å¢ã§ä½ã£ããµã¼ãã¹ãã¯ã©ã¦ãã«æã£ã¦ããä»äºããã¦ãã¾ããã ã¯ã©ã¦ãã®ãªã¤ã·ã¤ã¨ãããæ¼ãããããããä½ãå¤ããããçµæã¨ã㦠âInfrastructure as Codeâ ãå®è·µãããã¨ã«ãªããçµæã¨ãã¦ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã ãã§ãã¹ã¦ãã³ã³ããã¼ã«åºæ¥ãç¶æ ã«ãªããã¤ã³ãã©ããããæ¥ãä¸è¦ã«ãªãã¾ããã ãããã£ãç°å¢ã§åããã "è ã®ç«ã¤ITã¨ã³ã¸ãã¢(ç¹ã«ã¹ããã¨ãµã¼ããµã¤ã)" ãåéãã¦ãã¾ãã çºè¡¨è³æ&ç®æ¡æ¸ãã§æ¯ãè¿ãæè¿ã®åã AWS Casual Talks #3 https://github.com/myfinder/aws-casual-3/blob/master/slide.
ã¯ããã« Ansible 1.7ããWindowsã®æä½ãã§ããããã«ãªã£ãã®ã§ãå®æ½ããããã®æºåãæ¸ãåºãã¦ã¿ãã ï¼2015-01-18: ç¾ç¶ã«åããã¦å¤§ããæ¸ãç´ããï¼ ï¼2015-03-27: ãAnsible 1.9.0.1ã使ç¨ããå ´åã®è¿½å ä½æ¥ãã追å ï¼ ï¼2015-04-29: 1.9.1ã§ãAnsible 1.9.0.1ã使ç¨ããå ´åã®è¿½å ä½æ¥ãã解決ããããããæç« ãä¿®æ£ï¼ ï¼2016-02-27: ãã£ã¨æéãåããã®ã§é ãã°ããªããæç« ã2.0ã«å¯¾å¿ï¼ ï¼2016-04-17: ãããã¯ã¼ã¯ãããã¡ã¤ã«ããããªãã¯ã§ãå©ç¨ã§ããããã«ãªã£ã¦ããã®ã¨ansible_winrm_*ã1.9.5ã«ããã¯ãã¼ãããã¦ããã®ã«å¯¾å¿ï¼ ï¼2017-06-03: 2.3.1ã§python 3ã§ãåä½ããããã«ãªã£ãï¼ ä»åã®ç°å¢ æåã«è©¦ãã段éã§ã¯ä»¥ä¸ã®éãï¼ æä½ãããW
Londonã§è¡ãããAnsibleFest ã«ã¦ãAnsible v2ã®è©±ãçºè¡¨ãããããã§ãã What's New in v2 - AnsibleFest London 2015 from jimi-c ã¦ã¼ã¶ã¼ãæ¸ããããªPlaybookã¯100%ã®äºææ§ããããããªä½ãã«ãã¦ãããããªã®ã§ãæ¥ãã§å¯¾å¿ããå¿ è¦ã¯ãªãããã§ããã ä¸é¨ã®ãã©ã°ã¤ã³ã«é¢ãã¦ã¯ã対å¿ãå¿ è¦ãªæ¨¡æ§ã§ããï¼ãã®ããã§ã³ã¬ã¾ã§åºæ¥ã¦ãããã¨ãã§ããªããªããããªãã¨ãç¡ããã°ããã®ã§ãããããï¼ ã½ã¼ã¹ã³ã¼ã㯠githubã§å ¬éããã¦ããã®ã§ãä»å試ãã¦ã¿ããã¨ã«ãã¾ããã ansible/ansible · GitHub 以ä¸ã®ã»ããã¢ããã³ãã³ããå®è¡ããã°ãéçºä¸ã®ansible v2ãå©ç¨ã§ãã¾ãã v2 ç°å¢ã®ã»ããã¢ããï¼2015/2/11ç¾å¨ãpy3ã¯ã¾ã åããªã模æ§) ------------
Ansible ã³ã¼ãã£ã³ã°è¦ç´ (ã®ä¾)¶ edX ãgithubä¸ã§Ansibleã®ã³ã¼ãã£ã³ã°è¦ç´ãå ¬éãã¦ãã¾ãã https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions ãã®ãªãã¸ããªã¯ GNU AGPLv3ã§ãã翻訳ã®å ´åã§ããããã大ä¸å¤«ã ã¨æãã¾ãã®ã§ãããã§ç¿»è¨³ãã¦å ¬éãã¦ã¿ã¾ãã ä¸è¬Â¶ YAMLãã¡ã¤ã« ãã¹ã¦ã®yamlãã¡ã¤ã«ã¯2ã¹ãã¼ã¹ã®ã¤ã³ãã³ãã§ã .yml ãæ¡å¼µåã« ä»ãã¦ãã ããã å¤æ° jinjaå¤æ°ã®å½¢å¼ã使ã£ã¦ãã ããã $var ã§ã¯ãªã {{ var }} ã§ãã jinjaã®å¤æ°åã®åå¾ã«ç©ºç½ãå ¥ãã¦ãã ããã {{var}} ã§ã¯ãªã {{ var }} ã§ãã ç°å¢ç¬èªã§ä¸æ¸ããããå¿ è¦ãããå¤æ°åã¯å ¨é¨å¤§æåã¨ãã¦ãã ããã ãã¼ã«å ã§å®çµããå¤æ°åã¯å ¨é¨
tl;dr; ã¿ã¤ãã«ã®éããRHEL6ç³»ãªã®ã§CentOS6ãScientificLinux6ãªã©ã該å½ã Pramiko ansibleã¯åãã¹ãã¨ã®æ¥ç¶ã«ã¯sshã¨ä½¿ãã¾ãããã®æãsshã«ã¯ControlPersistã¨ããæ©è½ã«å¯¾å¿ãã¦ãããã¨ãå¿ è¦ã§ãopensshãªããã¼ã¸ã§ã³5.6以ä¸ã対象ã§ããansibleã®ããã©ã«ãã®åä½ã§ã¯ãPATHä¸ã®sshã³ãã³ããControlPersistã«å¯¾å¿ãã¦ããã°sshã使ããããã§ãªãå ´åã¯paramikoã¨ããpythonã®sshã©ã¤ãã©ãªãç¨ããããããã«ãªã£ã¦ãã¾ãã RHEL6ç³»ã®opensshã¯ãã¼ã¸ã§ã³5.3ã®çºãä½ãè¨å®ããã«ä½¿ãã¨paramikoãç¨ãããã¾ãã Paramikoãé ã ã¨ããããã®paramikoãç¨ããansibleã®å®è¡ã¯ããªãé ãã§ããã©ã®ç¨åº¦é ããã¯æ«å°¾ãåç §ãç¹ã«å°æ°ãå¤ãå ´åã«ãã®å½±é¿
I have a simple file at /etc/foo.txt. The file contains the following: #bar I have the following ansible playbook task to uncomment the line above: - name: test lineinfile lineinfile: backup=yes state=present dest=/etc/foo.txt regexp='^#bar' line='bar' When I first run ansible-playbook, the line gets uncommented and the /etc/foo.txt now contains the following: bar However, if I run ansible-playboo
ansible ã®è¨å®ãã¡ã¤ã«ã¯ YAML ãªã®ã§ããã ansible ã®èª¬æã§ã¯ YAML ç±æ¥ã®ããããªæ¸ãæ¹ã«ã¤ãã¦ã¯ãã¾ã説æããªãã®ã§ã ansible ã®è¨å®ãã¡ã¤ã«ãæ¸ãæã«ç¥ã£ã¦ããã¨ä¾¿å©ãª YAML ã®ç¥èã«ã¤ãã¦ã¾ã¨ãã¦ã¿ã¾ããã YAML ã®ãã¼ã¸ã§ã³ The Official YAML Web Site ã«ãã㨠YAML ã®ä»æ§ã¨ãã¦ã¯ YAML 1.2 (3rd Edition) ã¾ã§åå¨ããããã§ããã ansible 㯠PyYaml ã使ã£ã¦ãã¦ã libyaml binding ãªã®ã§ 対å¿ãã¦ãã YAML ã®ãã¼ã¸ã§ã³ã¯ YAML 1.1 (2nd Edition) ã«ãªãã¾ãã ã³ã¬ã¯ã·ã§ã³ åè: 2.1. Collections é å - ã§åæããã¨é åã«ãªãã¾ãã YAML ã¯ç©ºç½ã«ææãªã®ã§ã -foo ã®ããã«æ¸ãã¨ã¨ã©ã¼ã«ãªãã¾ãã
ãã®æ稿㯠Ansible Advent Calendar 2013 ã®16æ¥ç®ã®è¨äºã§ãã Ansible ã使ã£ã¦ã¿ã¾ãã2013å¹´ã¯ããã»ãã»ãã»ã¼ã»ããã¨èªãã®ãæµè¡ãã®ããã§ããã ããã¾ã§ããããã®VPSã使ã£ã¦ç°å¢æ§ç¯ã®ãã¹ãã¨ããã¦ããã®ã§ãããä½åº¦ãåæè¨å®ãããã®ãé¢åã ã£ãã®ã§ Chef ãä½ãã«æãåºããã¨æã£ã¦ãã®ã§ãããAnsible 㯠Python製ã¨ãããã¨ãèãã¤ããä½ãæ¹ããããã®ãæããã®ã§ãã©ã¤ãã¦ã¿ããã¨ã«ãã¾ããã ãããã®VPS (CentOS 6.5) ã®ç°å¢æ§ç¯æé ã¯ãããããã®VPS (CentOS 6.5) ã«LAMPç°å¢ãæ§ç¯ãã«ã¾ã¨ãã¦ããã¾ããä»åã¯ããã®æé ããã®ã¾ã¾ Ansible ã® playbook ã§å®ç¾ãããã¨æãã¾ãã Ansibleåå¿è ã¨ãããã¨ããããä»åããªãããã£ãã®ã§ãããããã¤ã³ããæå¾ã«ã¾ã¨ãã¦ãã
Ansible 1.5ãªãªã¼ã¹Â¶ Ansibleã®1.5ããªãªã¼ã¹ããã¾ããã å ¬å¼ããã°è¨äº ãªãªã¼ã¹ãã¼ã 1.5ã§ã¯ããããã®å¤æ´ãããããã®ãã¡ã®ä¸é¨ã ãã§ãããã ãããã¾ãã ansible vaultã«ãããã©ã¡ã¼ã¿ã®æå·å ssh pipelineingã«ããé«éå 1.4ããå»æ¢äºå®ã§è¦åãåºã¦ããwhen_XXX ãå®å ¨ã«åé¤ããããã«whenã 使ããã¨ã only_if ãå»æ¢äºå®ã«ã ãã°ãåºããªãããno_logãªãã·ã§ã³ã®è¿½å git moduleã«ãã©ã¡ã¼ã¿ã®è¿½å (accept_hostkey, key_file, ssh_opts) å種moduleã®è¿½å ãããããããã®å¤æ´ã®ãã¡ãä»åã®è¨äºã§ã¯ansible vaultãssh pipeliningã追å ãããassert moduleã«ã¤ãã¦ã説æãã¾ãã ansible vault¶ ãã¹ã¯ã¼ããA
DSSæè¡ããã°ã¸ãããã! çªç¶ã§ãããã¿ãªãã㯠Ansible (ã¢ã³ã·ãã«) ã¨ããæ§æ管çãã¼ã«ããåç¥ã§ãããã? ããããä½åãã«åãã¦1 Ansible ã®ç´¹ä»è¨äºãæ¸ãã¦ããããã¨æãã¾ãã æ°ãããã¼ã«ã«ã¤ãã¦å¦ã¶ã¨ããå®éã«æãåãããã¨ã¯ç解ã®å©ãã«ãªãã¾ãã ãã®é£è¼ã§ã¯ã主ã«æ§æ管çãã¼ã«ã Ansible ãã¾ã 使ã£ããã¨ã®ãªãæ¹ãã¡ã«åã㦠ã¹ãã¼ãªã¼ 㨠ãã¥ã¼ããªã¢ã« ã§è¿½ä½é¨ãã§ãããããªå 容ããå±ããããã¨ã ç®æãã¦ãã¾ãã ä»åã¯ãã®ä¸åç®ãããããã¤ã³ãããã¯ã·ã§ã³ã§ãã ä¸æè°ã®å½ã®Ansible2 第1話 ã¤ã³ãã©ã®è½ã¨ãç©´ã«ã¯ã¾ã£ã¦ ãªã Ansible ã使ãã®ã é½å ææã®Webç³»ä¼æ¥ããªãã£ã¹ã®çé 㧠REALFORCE3 ã®éé»å®¹éç¡æ¥ç¹æ¹å¼ãã¼ãã¼ãã å°æ°å³ããå¥ã§ã¦è¤æ°ã®ã¿ã¼ããã«ã縦横ã«æã Linux ãµã¼ã4ã管çãã¦
simple configuration tool for os x osxc installs software on your mac and configures it automatically, just by writing a few lines of code. --- # my mac: roles: - role: dashboard disabled: YES - role: brew_package package_name: node - role: cask_package package_name: minecraft lost everything on your hard drive? osxc got your back, don't waste your time reinstalling your dev environment. want to e
One cool thing about Ansible is that you can use it to provision your OS X boxes using the homebrew module (which I co-wrote with Andrew Dunham). Today, Iâm going to share with you how I fully automate the provisioning of new OS X boxes. (Note: this blog entry assumes the use of Ansible 1.6, which is currently still in development) Ansible Setup I have a private repository with a playbook that loo
Installation, Upgrade & Configuration Installation Guide Basics / What Will Be Installed What Version To Pick? Control Machine Requirements Managed Node Requirements Installing the Control Machine Latest Release via DNF or Yum Latest Releases Via Apt (Ubuntu) Latest Releases Via Apt (Debian) Latest Releases Via Portage (Gentoo) Latest Releases Via pkg (FreeBSD) Latest Releases on Mac OSX Latest Re
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}