-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from RealOrangeOne/puppet
Puppet
- Loading branch information
Showing
42 changed files
with
219 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
.csync_* | ||
.owncloudsync.log | ||
config/jetbrains-settings.jar | ||
config/assh.* | ||
bash/private.sh |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
[submodule "atom"] | ||
path = atom | ||
url = git@gist.github.com:9f9a4dd799ad01aa0502a09f06cbf454.git | ||
[submodule "modules/vcsrepo"] | ||
path = modules/vcsrepo | ||
url = https://github.com/puppetlabs/puppetlabs-vcsrepo | ||
[submodule "modules/concat"] | ||
path = modules/concat | ||
url = https://github.com/puppetlabs/puppetlabs-concat | ||
[submodule "modules/stdlib"] | ||
path = modules/stdlib | ||
url = https://github.com/puppetlabs/puppetlabs-stdlib | ||
[submodule "modules/git"] | ||
path = modules/git | ||
url = https://github.com/puppetlabs/puppetlabs-git |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo puppet apply manifests/main.pp --modulepath=modules/ |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
node default { | ||
Exec { | ||
path => ['/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin'] | ||
} | ||
|
||
include stdlib | ||
|
||
include yaourt | ||
include gnome | ||
include config | ||
include shell | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class config::fonts { | ||
$fonts = [ | ||
"11-lcdfilter-default.conf", | ||
"10-sub-pixel-rgb.conf", | ||
"30-infinality-aliases.conf" | ||
]; | ||
|
||
$fonts.each |String $font| { | ||
file { "font config $font": | ||
path => "/etc/fonts/conf.d/$font", | ||
ensure => link, | ||
mode => "0644", | ||
source => "/etc/fonts/conf.avail/$font" | ||
|
||
} | ||
} | ||
|
||
exec { 'update font cache': | ||
command => "gdk-pixbuf-query-loaders --update-cache" | ||
} | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class config::git { | ||
file { '/home/jake/.gitignore_global': | ||
ensure => file, | ||
mode => "0644", | ||
source => 'puppet:///modules/config/gitignore_global' | ||
} | ||
|
||
git::config { "global ignore" : | ||
key => 'core.excludesfile', | ||
value => '/home/jake/.gitignore_global', | ||
user => "jake" | ||
} | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class config { | ||
include 'config::vim' | ||
include 'config::git' | ||
include 'config::fonts' | ||
|
||
file { '/etc/libinput-gestures.conf': | ||
ensure => file, | ||
mode => "0644", | ||
source => 'puppet:///modules/config/libinput-gestures.conf' | ||
} | ||
|
||
file { '/home/jake/.config/terminator/config': | ||
ensure => file, | ||
mode => "0644", | ||
source => 'puppet:///modules/config/terminator.conf' | ||
} | ||
|
||
file { '/home/jake/.config/uniemoji/custom.json': | ||
ensure => file, | ||
mode => "0644", | ||
source => 'puppet:///modules/config/uniemoji.json' | ||
} | ||
|
||
|
||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class config::vim { | ||
file { '/home/jake/.vimrc': | ||
ensure => file, | ||
mode => "0644", | ||
owner => "jake", | ||
group => "users", | ||
source => 'puppet:///modules/config/vimrc' | ||
} -> | ||
|
||
vcsrepo { '/home/jake/.vim_runtime': | ||
ensure => latest, | ||
provider => git, | ||
user => 'jake', | ||
source => "https://github.com/amix/vimrc.git", | ||
} -> | ||
|
||
exec { 'install vim plugins': | ||
command => "vim +PluginInstall +qall", | ||
user => "jake", | ||
environment => "HOME=/home/jake" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class gnome { | ||
file { '/home/jake/Templates': | ||
ensure => directory, | ||
source => 'puppet:///modules/gnome/Templates', | ||
owner => "jake", | ||
group => "users", | ||
mode => "0755", | ||
recurse => remote | ||
} | ||
|
||
exec { 'show battery percentage': | ||
user => "jake", | ||
command => 'gsettings set org.gnome.desktop.interface show-battery-percentage true' | ||
} | ||
|
||
exec { 'Remove volume change sound': | ||
user => "jake", | ||
command => 'gsettings set org.gnome.desktop.sound event-sounds false' | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
class shell { | ||
$zshrc = "/home/jake/.zshrc" | ||
|
||
$files = [ | ||
"puppet:///modules/shell/.zshrc", | ||
"puppet:///modules/shell/base.sh", | ||
"puppet:///modules/shell/applications.sh", | ||
"puppet:///modules/shell/catfish.sh", | ||
"puppet:///modules/shell/javascript.sh" | ||
]; | ||
|
||
concat {"zshrc": | ||
path => $zshrc, | ||
owner => "jake", | ||
group => "users", | ||
mode => "0644", | ||
ensure_newline => true | ||
} | ||
|
||
$files.each |String $file| { | ||
concat::fragment {"zshrc concat $file": | ||
target => $zshrc, | ||
source => $file | ||
} | ||
} | ||
|
||
file {'nvm': | ||
path => "/home/jake/.nvm/nvm.sh", | ||
owner => "jake", | ||
group => "users", | ||
mode => "0755", | ||
source => "/usr/share/nvm/init-nvm.sh" | ||
} | ||
|
||
file { '/home/jake/.bin': | ||
ensure => directory, | ||
source => 'puppet:///modules/shell/bin', | ||
owner => "jake", | ||
group => "users", | ||
mode => "0755", | ||
recurse => remote | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class yaourt::files () { | ||
file { '/etc/pacman.conf': | ||
ensure => file, | ||
source => 'puppet:///modules/yaourt/pacman.conf' | ||
} | ||
|
||
file { '/home/jake/.yaourtrc': | ||
ensure => file, | ||
mode => "0644", | ||
owner => "jake", | ||
group => "users", | ||
source => 'puppet:///modules/yaourt/.yaourtrc' | ||
} | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class yaourt { | ||
include 'yaourt::packages' | ||
|
||
include 'yaourt::keys' | ||
|
||
include 'yaourt::files' | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class yaourt::keys () { | ||
exec { 'gpg --recv-keys F7E48EDB': | ||
user => 'jake' | ||
} | ||
|
||
exec { 'pacman-key -r 962DDE58': | ||
} | ||
|
||
exec { 'pacman-key --lsign-key 962DDE58': | ||
} | ||
|
||
exec { 'gpg --keyserver pool.sks-keyservers.net --recv-keys 2E1AC68ED40814E0': | ||
user => 'jake' | ||
} | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class yaourt::packages () { | ||
package {[ | ||
'firefox' | ||
]: | ||
ensure => latest | ||
} | ||
} |