mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Update repo structure as part of nixification
This commit is contained in:
parent
49e67c64fb
commit
cc0efcfdde
56 changed files with 181 additions and 154 deletions
|
|
@ -1,21 +0,0 @@
|
|||
# Select a profile based on the OS family
|
||||
class profile::linux {
|
||||
case $facts['os']['family'] {
|
||||
'Debian': { include profile::linux::debian }
|
||||
'RedHat': { include profile::linux::el }
|
||||
default: { fail("${facts['os']['family']} isn't supported yet") }
|
||||
}
|
||||
|
||||
exec { 'download hub':
|
||||
path => '/bin:/usr/bin',
|
||||
command => "curl -s https://api.github.com/repos/github/hub/releases/latest | grep \"browser_download_url.*linux-amd64\" | cut -d '\"' -f4 | xargs -n 1 curl -L | tar -xzvf - -C /tmp && mv /tmp/hub* /usr/local/hub",
|
||||
creates => '/usr/local/hub',
|
||||
}
|
||||
|
||||
file {'/usr/local/bin/hub':
|
||||
ensure => 'link',
|
||||
target => '/usr/local/hub/bin/hub',
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue