Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

nikukyugamer/itamae-for-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

my own rbenv environment provisioning by Itamae

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published