mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Lots of updates :)
This commit is contained in:
parent
cfa3aa1681
commit
14680c582c
10 changed files with 55 additions and 41 deletions
|
|
@ -6,6 +6,6 @@ defaults: # Used for any hierarchy level that omits these keys.
|
|||
|
||||
hierarchy:
|
||||
- name: "Per-node data"
|
||||
path: "nodes/%{trusted.certname}.yaml"
|
||||
path: "nodes/%{hostname}.yaml"
|
||||
- name: "Common data"
|
||||
path: "common.yaml"
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
---
|
||||
foo: bar
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ node default {
|
|||
notify{'This is from the default node.':}
|
||||
}
|
||||
|
||||
node 'dawns-macbook-pro.local' {
|
||||
include ::profile::mac
|
||||
node 'dawns-macbook-pro' {
|
||||
include ::role::workstation
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,12 @@
|
|||
# the base profile should include component modules that will be on all nodes
|
||||
class profile::base {
|
||||
$pip_packages = [
|
||||
'psutil',
|
||||
'powerline-status',
|
||||
]
|
||||
|
||||
package { $pip_packages:
|
||||
ensure => 'latest',
|
||||
provider => 'pip',
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,12 +42,33 @@ class profile::mac {
|
|||
]
|
||||
|
||||
package { $homebrew_packages:
|
||||
ensure => 'installed',
|
||||
ensure => 'latest',
|
||||
provider => 'brew',
|
||||
}
|
||||
|
||||
file { "${homedir}/repos":
|
||||
ensure => 'directory',
|
||||
}
|
||||
|
||||
vcsrepo { "${homedir}/.vim/bundle/Vundle.vim":
|
||||
ensure => 'present',
|
||||
ensure => 'latest',
|
||||
provider => 'git',
|
||||
source => 'https://github.com/VundleVim/Vundle.vim.git',
|
||||
}
|
||||
|
||||
vcsrepo { "${homedir}/repos/powerline-fonts":
|
||||
ensure => 'latest',
|
||||
provider => 'git',
|
||||
source => 'https://github.com/powerline/fonts.git',
|
||||
require => File["${homedir}/repos"],
|
||||
notify => Exec['update-fonts'],
|
||||
}
|
||||
|
||||
exec { 'update-fonts':
|
||||
command => "${homedir}/repos/powerline-fonts/install.sh",
|
||||
cwd => "${homedir}/repos/powerline-fonts",
|
||||
logoutput => true,
|
||||
environment => "HOME=${homedir}",
|
||||
refreshonly => true,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
# Includes all the profiles needed for a workstation
|
||||
class role::workstation {
|
||||
include ::profile::base
|
||||
|
||||
case $facts['kernel'] {
|
||||
'Darwin': {
|
||||
include ::profile::mac
|
||||
}
|
||||
default: {
|
||||
fail("${facts['kernel']} hasn't been setup in the workstation role yet.")
|
||||
}
|
||||
} # end of kernel case statement
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue