This file contains 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 | |
export PLENV_ROOT=/opt/perl5 | |
export PATH="$PLENV_ROOT/bin:$PATH" | |
eval "$(plenv init -)" | |
cd /tmp | |
if [[ -e 'cpanfile' ]] | |
then | |
cpanm --installdeps . |
This file contains 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
requires 'DigitalOcean', 0.08; |
This file contains 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: install perl with perlenv | |
script: perlenv.sh | |
- name: copy cpanfile to /tmp/ | |
copy: src=cpanfile dest=/tmp/cpanfile | |
- name: install modules | |
script: install_with_cpanm.sh | |
This file contains 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Getopt::Long; | |
use Pod::Usage; | |
use DigitalOcean; | |
my $client_id = $ENV{DIGITALOCEAN_CLIENT_ID}; |
This file contains 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') }}" |
This file contains 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 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 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 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 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 |