Giter Site home page Giter Site logo

my-env-chef-01's Introduction

対応OS

  • ubuntu12.04
  • ubuntu14.04(なぜか数回コケるがそのまま繰り返せば入る)

OSのインストール後のchefのタスク

  • cheferユーザーをパスワードなしでsudoできるように( sudo vi /etc/sudoers.d/chefer "chefer ALL=(ALL) NOPASSWD:ALL" )

  • sudo aptitude install ssh

  • (ssh-copy-id -i (公開鍵ファイル) (リモートマシンのアドレス) )

  • ssh-keygen -t rsa

  • cheferの.ssh/authorized_keysに適宜以下をはる

    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAw51eE+J2h6TpniohD+L9WZ9KiTVzyUW5u/um6Ce5t73kqJGmURc0ANW18cI8JbRppb9yOMDZpjnsOIKj0hH8bcazptyXJfVsZNzqXO7wak/OXtdJxrR06yXU7nAzpCQ0ojnG5zyJONRInY9SXXi33ZyoAiPK3onoGINL8IMwddUlm4VEgitF/eazrer7B14OuMsp9OwYlTZkk1tqlXKJ187ipDhZFsGTpfWRzq3QiLD/agIKlI12/YFMoxFmYLrYqX4Gvo1mgklZAhh2JR42jiwFcvy1ykVsxxjiRzv1dooe19kK7VagrBibrfhfxKcx8RVgUX1N8xE9+/W3NBrUcQ== hirobanex@000-local-env

  • chmod 600 ~/.ssh/authorized_keys

  • sshの設定を変更

    • scp remote_sshd_config [email protected]:転送して、/etc/ssh/sshd_configに移動
    • sudo service ssh restart
  • 作業用のローカルユーザーの.ssh/configに設定

    Host server-name HostName ........ User chefer Port 12345 UserKnownHostsFile /home/$USER/.ssh/known_hosts StrictHostKeyChecking no PasswordAuthentication no IdentityFile "/home/$USER/.ssh/id_rsa" IdentitiesOnly yes

chefの実行

  • knife solo prepare
  • knife solo cook
  • knife cookbook create -o site-cookbooks
  • knife cookbook test -o site-cookbooks

my-env-chef-01's People

Contributors

hirobanex avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.