![]() homesick_castles: your dotfiles git repository URL to 'git clone'.For help with SSH agent forwarding, see.If you've already set one up, you can probably get it by running cat ~/.ssh/id_rsa.pub.ssh_keys: the contents of your SSH public key file.for the security conscious, run openssl passwd -1 and type a password in.password: hashed password, generated via openssl passwd -1 "password123".Sample databags/users/testuser.jsonįor example, save the following into databags/users/testuser.json, taking If a user has a dotfiles directory which shouldīe installed (homesick calls them castles), you'll need to insert an addtional 'homesick_castles' property. Mkdir -p ~/code/vagrant-tutorial/databags/ssh_known_hostsįor each user to be created, you'll need to provide a config file atĭatabags/users/USERNAME.json. Repositories requiring SSH key authentication via agent forwarding:įor more information about how the custom cookbooks work (and for my notes about learning chef), see the following writeups:Ĭreate sub-directories for cookbooks (chef deployment scripts) and databags (JSON config files): The following additional cookbooks are required to support dotfiles homesick: installs public git repositories for each user's dotfiles (eg. ![]() users: creates user accounts from JSON configuration files.git: basically runs 'sudo apt-get install git'.vim: basically runs 'sudo apt-get install vim'.(Get the idea?)įor this tutorial, we will use chef-solo to provision the following Chef cookbooks: Chef calls provisioning scripts "recipes", and related recipes are grouped into "cookbooks". This tutorial will use Chef-solo, a single-server version of Chef. Vagrant calls this process "provisioning", and supports several popular tools including Puppet and Chef. updating configuration files ( /etc/apache2/nf).installing packages ( apt-get install vim).The main benefit of Vagrant is to easily provision VMs with yourĬustomizations, which generally include the following: Vagrant destroy -force & vagrant up # deletes the VM and rebuilds Provision VM customizations using Chef # Destroys the active VM, and rebuilds from the base box. Use this if you changed virtualbox settings (eg shared folders) # Fastest method: re-runs the provisioner (eg chef-solo) without stopping the VM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |