This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new, lean base box, have puppet scripts for most things to easisly rebuild our box, and have it work out-of-the-box. YAY!
- Loading branch information
Showing
10 changed files
with
133 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,36 +1,47 @@ | |||
# Path to your oh-my-zsh configuration. | # Path to your oh-my-zsh configuration. | ||
export ZSH=$HOME/.oh-my-zsh | ZSH=$HOME/.oh-my-zsh | ||
|
|
||
# Set name of the theme to load. | # Set name of the theme to load. | ||
# Look in ~/.oh-my-zsh/themes/ | # Look in ~/.oh-my-zsh/themes/ | ||
# Optionally, if you set this to "random", it'll load a random theme each | # Optionally, if you set this to "random", it'll load a random theme each | ||
# time that oh-my-zsh is loaded. | # time that oh-my-zsh is loaded. | ||
export ZSH_THEME="cypher" | # Themes just cause trouble inside vagrant, so we disable them. | ||
# ZSH_THEME="robbyrussell" | |||
|
|||
# Example aliases | |||
# alias zshconfig="mate ~/.zshrc" | |||
# alias ohmyzsh="mate ~/.oh-my-zsh" | |||
alias dj="./manage.py" | |||
alias runserver="dj runserver 0.0.0.0:8000" | |||
alias rs="runserver" | |||
alias t="dj test -x --logging-clear-handlers --with-nicedots" | |||
alias td="FORCE_DB=True t" | |||
alias tf="dj test --logging-clear-handlers --with-nicedots --failed" | |||
alias tp="t --pdb --pdb-failure" | |||
|
|
||
# Set to this to use case-sensitive completion | # Set to this to use case-sensitive completion | ||
# export CASE_SENSITIVE="true" | # CASE_SENSITIVE="true" | ||
|
|
||
# Comment this out to disable weekly auto-update checks | # Comment this out to disable weekly auto-update checks | ||
# export DISABLE_AUTO_UPDATE="true" | DISABLE_AUTO_UPDATE="true" | ||
|
|
||
# Uncomment following line if you want to disable colors in ls | # Uncomment following line if you want to disable colors in ls | ||
# export DISABLE_LS_COLORS="true" | # DISABLE_LS_COLORS="true" | ||
|
|
||
# Uncomment following line if you want to disable autosetting terminal title. | # Uncomment following line if you want to disable autosetting terminal title. | ||
# export DISABLE_AUTO_TITLE="true" | # DISABLE_AUTO_TITLE="true" | ||
|
|||
# Uncomment following line if you want red dots to be displayed while waiting for completion | |||
# COMPLETION_WAITING_DOTS="true" | |||
|
|
||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | ||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |||
# Example format: plugins=(rails git textmate ruby lighthouse) | # Example format: plugins=(rails git textmate ruby lighthouse) | ||
plugins=() | plugins=(git django vagrant python pip) | ||
|
|
||
source $ZSH/oh-my-zsh.sh | source $ZSH/oh-my-zsh.sh | ||
|
|
||
# Customize to your needs... | # Customize to your needs... | ||
export PATH=$HOME/mozillians/directory/localtest/bin:/usr/local/libexec/:/vagrant/directory/localtest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games | export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/ruby/bin/ | ||
|
|
||
. $HOME/.virtualenvs/mozillians/bin/activate | |||
cd $HOME/mozillians | cd $HOME/mozillians | ||
|
|||
pushd $HOME/mozillians/directory/devslapd/ | |||
. $HOME/mozillians/directory/devslapd/setup.sh | |||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
# stage {"pre": before => Stage["main"]} class {'apt': stage => 'pre'} | |||
|
|||
# Commands to run before all others in puppet. | |||
class init { | |||
group { "puppet": | |||
ensure => "present", | |||
} | |||
|
|||
case $operatingsystem { | |||
ubuntu: { | |||
exec { "update_apt": | |||
command => "sudo apt-get update", | |||
} | |||
|
|||
# Provides "add-apt-repository" command, useful if you need | |||
# to install software from other apt repositories. | |||
package { "python-software-properties": | |||
ensure => present, | |||
require => [ | |||
Exec['update_apt'], | |||
]; | |||
} | |||
} | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
class oh_my_zsh { | |||
exec { "oh-my-zsh": | |||
command => "wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh", | |||
require => Package['git-core', 'zsh'], | |||
cwd => '/home/vagrant/', | |||
user => 'vagrant'; | |||
#path => "/usr/bin:/usr/sbin:/bin:/usr/local/bin", | |||
#refreshonly => true, | |||
} | |||
|
|||
exec { "change-shell": | |||
command => "sudo chsh vagrant /usr/bin/zsh", | |||
require => Exec['oh-my-zsh']; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -29,4 +29,4 @@ | ||
} | } | ||
|
|
||
} | } | ||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters