This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.factory('myOrder', function () { | |
var order = {}; | |
return { | |
init: function () { | |
order = {}; | |
}, | |
setStock: function(stock){ | |
order.stock = stock; | |
}, | |
getStock: function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: servers | |
user: root | |
tasks: | |
- name: add user | |
user: name=kamesho | |
- authorized_key: user=kamesho key="{{ lookup('file', '/Users/kamesho/.ssh/id_rsa.pub') }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: servers | |
user: root | |
tasks: | |
- name: install the latest git | |
command: rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt | |
command: rpm -i http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | |
- name: install git with yum | |
yum: name=git enablerepo=rpmforge-extras state=latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: servers | |
user: root | |
tasks: | |
- name: create repository for packages | |
copy: src=files/mongodb.repo dest=/etc/yum.repos.d/mongodb.repo | |
- name: install mongodb pacakges | |
yum: name=mongo-10gen state=latest | |
yum: name=mongo-10gen-server state=latest | |
- name: config mongodb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: servers | |
user: root | |
tasks: | |
- name: installl mysql packages | |
yum: name=mysql state=latest | |
yum: name=mysql-devel state=latest | |
yum: name=mysql-server state=latest | |
- name: configure mysql | |
command: /sbin/chkconfig mysqld on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: servers | |
user: thnkout | |
tasks: | |
- name: install perlenv | |
script: files/perlenv.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ ! -e $HOME/.plenv ]];then | |
git clone git://github.com/tokuhirom/plenv.git $HOME/.plenv | |
echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> $HOME/.bash_profile | |
echo 'eval "$(plenv init -)"' >> $HOME/.bash_profile | |
git clone git://github.com/tokuhirom/Perl-Build.git $HOME/.plenv/plugins/perl-build/ | |
$HOME/.plenv/bin/plenv install 5.18.0 | |
$HOME/.plenv/bin/plenv rehash | |
$HOME/.plenv/bin/plenv global 5.18.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="content wrap"> | |
<div class="about"> | |
<table> | |
<tr> | |
<td> | |
<div class="portrait" style="padding:20px;margin-top:17px"> | |
<img src="{PortraitURL-96}"> | |
</div> | |
</td> | |
<td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: servers | |
user: root | |
tasks: | |
- name: get jenkins repo | |
command: wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
- name: install jenkins | |
command: rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key | |
- name: install Jenkins by yum | |
yum: name=jenkins state=latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: add user and create ssh key | |
user: name=shohei | |
- name: dowanload pubkey from Github and placed as authorized_keys | |
get_url: url=https://github.com/shohey1226.keys dest=/tmp/shohei.authorized_keys | |
delegate_to: 127.0.0.1 | |
- name: Create authorized_keys from the file that just downloaded | |
authorized_key: user=shohei key="{{ lookup('file', '/tmp/shohei.authorized_keys') }}" |