ec2-**なコマンドを使いたい amazon linuxなら/opt/awsにamitools/apitools入っており、パスが通っているので使いましょう。 デフォルトの権限はレイヤ設定iam roleに基づきます。 chef-shellで作業したい /opt/aws/opsworks/currentで作業すれば、普通のChefクライアントを操作出来ます。 11.4 の場合 $ cd /opt/aws/opsworks/current $ bundle exec chef-shell -s -c conf/solo.rb loading configuration: conf/solo.rb Session type: solo Loading.......done. This is the chef-shell. Chef Version: 11.4.4 http://www.ops
AWS OpsWorksを使ってHAProxyのレイヤーを追加し、HAProxyインスタンスを立ち上げてみる。 自分のkeypairを使うように設定すれば、SSHでログインすることができる。 早速ログインしてみる。 ec2-userでログインができた。 OpsWorksの動作に関連しそうなものは以下のディレクトリにあった。 [ec2-user@stratus aws]$ sudo ls opsworks/current/bin chef-client gli opsworks-agent-cli restclient chef-solo knife opsworks-agent-installer s3curl.pl convert_to_should_syntax lockrun opsworks-agent-updater shef edit_json.rb nokogiri pret
なにができるのか?¶ OpsWorksで動かすルールをvagrant+chef soloを使ってローカルでも試したい! と思いませんか? OpsWorksそれ自体はお金はかからないとはいえ、OpsWorksから起動されるec2と付随するいくつかのサービスにはお金がかかります。それを vagrant を使ってローカルで試行錯誤できればお金はかかりません。 OpsWorksはchefで作られていることは周知の事実です。 http://docs.aws.amazon.com/opsworks/latest/userguide/welcome.html にも以下の通り書かれています。 AWS OpsWorks uses its own Chef recipes to configure the instances on a stack. Chef Solo runs on every instan
#この記述だとうまく行かない #gem_package "ruby-shadow" do # action :install #end #passwordの実行時はopsworks側のgemを使うため下記の記述が必要 OpsWorks::InternalGems.internal_gem_package "ruby-shadow" user "hoge" do #openssl passwd -1 "hogehoge" password '$1$7pX3AIBp$9PvEI3.4itiZdUYMMx78g1' end Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informat
2013/07/06 JAWS-UG Kobe 第2回 OpsWorks(Chef)特集 発表スライドRead less
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く