Git Product home page Git Product logo

itamae-for-vagrant's Introduction

What's this?

Itamae codes for provisioning rbenv minimum environment

  • assumed on Vagrant environment
    • sample Vagrantfile is here

How to use

  1. rewrite and rename below files as your environment
  • sabaku.sh.sample to sabaku.sh
    • user_01 and user_02 need to be changed
      • user_01 will be Vagrant default user
      • user_02 will be general user you wanna add
  • cookbooks\secret\username_and_password.rb.sample to cookbooks\secret\username_and_password.rb
    • USERNAME is very above user_02
    • PASSWORD is USERNAME's password
  • cookbooks\secret\root_password.rb.sample to cookbooks\secret\root_password.rb
    • ROOT_PASSWORD is root user's password
    • note that root login with password is prohibited
  • cookbooks\secret\authorized_keys.sample to authorized_keys.sample
    • you must prepare pair of public key and secret key
  1. add exec permission sabaku.sh
  2. exec sabaku.sh as below
$ ./sabaku.sh
  1. you need to input password three times
    • sudo password
    • first user's ssh password
      • first user is Vagrant default user
    • second user's ssh password
      • second user is general user you wanna add
  2. please wait a minute
  3. provisioning is complete, it's ready to use!

Notes

  • these recipes are useful FOR ME so you should modify them you like.
  • some recipes aren't used
  • I cannot use git such as below...why?
git "/usr/local/rbenv" do
  repository "git://github.com/rbenv/rbenv.git"
end
stdout | fatal: Not a git repository (or any of the parent directories): .git
  • should use not relative pathname but absolute pathname
    • doesn't work well when relative pathname
    • absolute pathname is idempotent and easy to understand
  • not adduser command but useradd command
    • adduser command is recommended on Ubuntu
    • but unwritable only one-linear with adduser command
    • so add CREATE_HOME yes in login.defs and used useradd command
  • Itamae has Vagrant option as default...

Tips

  • sabaku of sabaku.sh is Japanese verb word 捌く(Sa-Ba-Ku), which means to deal with foodstuff well

Thanks

LICENSE

itamae-for-vagrant's People

Contributors

nikukyugamer avatar renovate[bot] avatar

Watchers

 avatar

itamae-for-vagrant's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

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.