From 91999b63bd16d97e5374a0fd0da61aa3f8611a46 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 22 Aug 2013 01:47:34 -0400 Subject: [PATCH] dptfoles and bare essentials --- .gitignore | 1 + Puppetfile | 5 ++ Puppetfile.lock | 30 ++++++++ modules/people/manifests/atomaka.pp | 10 +++ modules/people/manifests/atomaka/dotfiles.pp | 79 ++++++++++++++++++++ 5 files changed, 125 insertions(+) create mode 100644 modules/people/manifests/atomaka.pp create mode 100644 modules/people/manifests/atomaka/dotfiles.pp diff --git a/.gitignore b/.gitignore index 5723164..c576ca7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /shared/* !/shared/README.md /vendor/gems/ +/vendor/* diff --git a/Puppetfile b/Puppetfile index ac4cbcd..43ef7ab 100644 --- a/Puppetfile +++ b/Puppetfile @@ -36,3 +36,8 @@ github "xquartz", "1.1.0" # Optional/custom modules. There are tons available at # https://github.com/boxen. +github "chrome", "1.1.1" +github "iterm2", "1.0.3" +github "tmux", "1.0.2" +github "osx", "1.6.0" +github "zsh", "1.0.0" diff --git a/Puppetfile.lock b/Puppetfile.lock index 14ce641..59acf3f 100644 --- a/Puppetfile.lock +++ b/Puppetfile.lock @@ -8,6 +8,11 @@ GITHUBTARBALL specs: boxen (3.0.1) +GITHUBTARBALL + remote: boxen/puppet-chrome + specs: + chrome (1.1.1) + GITHUBTARBALL remote: boxen/puppet-dnsmasq specs: @@ -33,6 +38,11 @@ GITHUBTARBALL specs: hub (1.0.3) +GITHUBTARBALL + remote: boxen/puppet-iterm2 + specs: + iterm2 (1.0.3) + GITHUBTARBALL remote: boxen/puppet-nginx specs: @@ -48,6 +58,11 @@ GITHUBTARBALL specs: openssl (1.0.0) +GITHUBTARBALL + remote: boxen/puppet-osx + specs: + osx (1.6.0) + GITHUBTARBALL remote: boxen/puppet-repository specs: @@ -63,11 +78,21 @@ GITHUBTARBALL specs: sudo (1.0.0) +GITHUBTARBALL + remote: boxen/puppet-tmux + specs: + tmux (1.0.2) + GITHUBTARBALL remote: boxen/puppet-xquartz specs: xquartz (1.1.0) +GITHUBTARBALL + remote: boxen/puppet-zsh + specs: + zsh (1.0.0) + GITHUBTARBALL remote: puppetlabs/puppetlabs-inifile specs: @@ -81,18 +106,23 @@ GITHUBTARBALL DEPENDENCIES autoconf (= 1.0.0) boxen (= 3.0.1) + chrome (= 1.1.1) dnsmasq (= 1.0.0) gcc (= 2.0.1) git (= 1.2.5) homebrew (= 1.4.1) hub (= 1.0.3) inifile (= 1.0.0) + iterm2 (= 1.0.3) nginx (= 1.4.2) nodejs (= 3.2.9) openssl (= 1.0.0) + osx (= 1.6.0) repository (= 2.2.0) ruby (= 6.3.0) stdlib (= 4.1.0) sudo (= 1.0.0) + tmux (= 1.0.2) xquartz (= 1.1.0) + zsh (= 1.0.0) diff --git a/modules/people/manifests/atomaka.pp b/modules/people/manifests/atomaka.pp new file mode 100644 index 0000000..39f15ab --- /dev/null +++ b/modules/people/manifests/atomaka.pp @@ -0,0 +1,10 @@ +class people::atomaka { + $home = "/Users/${::boxen_user}" + + include chrome + include tmux + include iterm2::stable + include zsh + + package { 'coreutils': } +} diff --git a/modules/people/manifests/atomaka/dotfiles.pp b/modules/people/manifests/atomaka/dotfiles.pp new file mode 100644 index 0000000..37dc7e4 --- /dev/null +++ b/modules/people/manifests/atomaka/dotfiles.pp @@ -0,0 +1,79 @@ +class people::atomaka::dotfiles { + $home = ${atomaka::people::home} + $dotfiles = "${home}/dotfiles" + $vim = "${home}/.vim" + + repository { $dotfiles: + source => 'atomaka/dotfiles', + } + + file { "${home}/.vimrc": + ensure => link, + target => "${dotfiles}/.vimrc", + require => Repository[$dotfiles], + } + + file { "${vim}/bundle": + ensure => directory, + require => Repository[$dotfiles], + } + + file { "${vim}/bundle/vundle": + ensure => link, + target => "${dotfiles}/.vim/bundle/vundle", + require => Repository[$dotfiles], + } + + file { "${vim}/colors": + ensure => directory, + require => Repository[$dotfiles], + } + + file { "${vim}/colors/vividchalk.vim": + ensure => link, + target => "${dotfiles}/.vim/colors/vividchalk.vim", + require => [Repository[$dotfiles], File["${vim}/colors"]], + } + + file { "${home}/.zshrc": + ensure => link, + target => "${dotfiles}/.zshrc", + require => Repository[$dotfiles], + } + + file { "${home}/.aliases": + ensure => link, + target => "${dotfiles}/.aliases", + require => Repository[$dotfiles], + } + + file { "${home}/.functions": + ensure => link, + target => "${dotfiles}/.functions", + require => Repository[$dotfiles], + } + + file { "${home}/.oh-my-zsh": + ensure => link, + target => "${dotfiles}/.oh-my-zsh", + require => Repository[$dotfiles], + } + + file { "${home}/.gitconfig": + ensure => link, + target => "${dotfiles}/.gitconfig", + require => Repository[$dotfiles], + } + + file { "${home}/.gitignore_global": + ensure => link, + target => "${dotfiles}/.gitignore_global", + require => Repository[$dotfiles], + } + + file { "${home}/.tmux.conf": + ensure => link, + target => "${dotfiles}/.tmux.conf", + require => Repository[$dotfiles], + } +}