Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anowell/arch-chef-boilerplate
A minimal chef repo to serve as a starting a project using Arch Linux nodes
https://github.com/anowell/arch-chef-boilerplate
Last synced: about 2 months ago
JSON representation
A minimal chef repo to serve as a starting a project using Arch Linux nodes
- Host: GitHub
- URL: https://github.com/anowell/arch-chef-boilerplate
- Owner: anowell
- Created: 2013-08-29T09:45:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-27T05:15:50.000Z (almost 11 years ago)
- Last Synced: 2023-04-09T06:14:18.087Z (almost 2 years ago)
- Language: Ruby
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Arch Chef Boilerplate
===============
A minimalist, yet sane configuration for bootstrapping a basic configuration onto Arch Linux hosts for a new project in minutes.Features
--------Defines a base role that includes all of the following:
Bundled base cookbook:
- [base:chef] Configures chef to run from cron
- [base:developer] A place to add dev-friendly standard configuration across nodes
- [base:docker] Configures a basic docker installation
- [base:firewall] Configures a basic iptables firewall
- [base:pacman] Refreshes package cache - but throttled to once-per-day
- [base:ssh] Disables ssh password login, and ssh as root
- [base:users] Disables root password loginDependent cookbooks:
- [cron] Used to schedule chef-client
- [logrotate] Used to rotate chef logs
- [sudo] Used to configure sudo and enable sysadmin sudoers
- [users] Used to creates sysadmin group with users as defined in users databagBasic Setup
-----------# clone this repo and wipe out .git/
# install knife.rb and pem keys (user and org) to ~/.chef/
$ echo "chef_client_path '/root/.gem/ruby/2.0.0/bin/chef-client'" >> .chef/knife.rb
$ berks install
$ berks upload
$ knife cookbook upload base
$ knife role from file roles/base.json
$ knife data bag create users
$ knife data bag create users # see README in user cookbook to configure with SSH public key*
$ knife bootstrap -x root -d archlinux-gems -r 'role[base]'Don't neglect to add at least one user and SSH public key or you may not be able to SSH into your node.