なにこれ楽しい。
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
| aws ec2 describe-instances \ | |
| --filter Name=tag-key,Values=Name \ | |
| --filter Name=tag-value,Values=$instance_name \ | |
| | jq -r ".[][].Instances[].InstanceId" |
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
| rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm | |
| yum install puppet -y | |
| puppet apply -e 'package {docker-io:} service {docker: ensure=>running, require=>Package[docker-io]}' |
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
| # The `common' part is automatically included (and possibly overriden by all | |
| # other flavors) | |
| common: | |
| # Bucket for storage | |
| boto_bucket: REPLACEME | |
| # Amazon S3 Storage Configuration | |
| s3_access_key: REPLACEME | |
| s3_secret_key: REPLACEME | |
| s3_bucket: REPLACEME |
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
| FROM centos | |
| MAINTAINER tmtk75 | |
| RUN yum install -y gcc gcc-c++ make | |
| RUN yum install -y zlib-devel openssl-devl libyaml-devel | |
| RUN wget -O /usr/local/ruby-2.1.0.tar.gz http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz | |
| RUN cd /usr/local; tar -xzf ruby-2.1.0.tar.gz | |
| RUN cd /usr/local/ruby-2.1.0; ./configure --prefix=/usr/local; make; make install | |
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
| # | |
| # reference: http://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/ | |
| # | |
| class virtualbox { | |
| include virtualbox::install::centos | |
| } | |
| class virtualbox::install::centos { | |
| yumrepo { virtualbox: | |
| descr => "Oracle Linux / RHEL / CentOS-\$releasever / \$basearch - VirtualBox", |
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
| class vagrant { | |
| include vagrant::install::centos | |
| } | |
| class vagrant::install::centos { | |
| $rpm_url = "https://dl.bintray.com/mitchellh/vagrant/vagrant_1.4.0_i686.rpm" | |
| exec { vagrant: | |
| command => "rpm -Uvh ${rpm_url}", | |
| creates => "/usr/bin/vagrant", | |
| path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', |
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
| class docker::install::centos { | |
| exec { epel: | |
| command => "rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm", | |
| creates => "/etc/yum.repos.d/epel.repo", | |
| path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', | |
| } | |
| package { 'docker-io': | |
| ensure => present, | |
| require => Exec[epel], |
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
| aws ec2 describe-tags \ | |
| | jq -r '.Tags[] | .Key + "\t" + .Value + "\t" + .ResourceType + "\t" + .ResourceId' |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| <style> | |
| a:before { | |
| content: 'hello'; | |
| } | |
| .vert a:before { |