2020-09-20 05:22:17 +00:00
|
|
|
# Disable filebucket by default for all File resources:
|
|
|
|
|
# https://github.com/puppetlabs/docs-archive/blob/master/pe/2015.3/release_notes.markdown#filebucket-resource-no-longer-created-by-default
|
|
|
|
|
File { backup => false }
|
|
|
|
|
|
|
|
|
|
node default {
|
|
|
|
|
#
|
|
|
|
|
# Find the username
|
|
|
|
|
#
|
|
|
|
|
# This can be set in the hira data so you can still do things as your user
|
|
|
|
|
# when running puppet as root
|
|
|
|
|
#
|
|
|
|
|
$user = lookup('user', String, 'first', $id)
|
|
|
|
|
notify { "Running as ${id} for ${user} with home of ${user_home}": }
|
|
|
|
|
|
|
|
|
|
#
|
2020-09-20 11:19:23 +00:00
|
|
|
# Install docker and docker-compose
|
2020-09-20 05:22:17 +00:00
|
|
|
#
|
2020-09-20 11:19:23 +00:00
|
|
|
class { 'docker': version => 'latest' }
|
2022-07-07 18:35:46 +00:00
|
|
|
class { 'docker::compose': ensure => present, version => '1.29.2' }
|
2020-09-20 05:22:17 +00:00
|
|
|
|
|
|
|
|
#
|
2020-09-20 11:19:23 +00:00
|
|
|
# Install vscode
|
2020-09-20 05:22:17 +00:00
|
|
|
#
|
2020-09-20 11:19:23 +00:00
|
|
|
class { 'vscode': }
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Install emacs
|
|
|
|
|
#
|
|
|
|
|
apt::ppa { 'ppa:kelleyk/emacs': }
|
|
|
|
|
package { 'emacs27':
|
|
|
|
|
ensure => installed,
|
|
|
|
|
require => [
|
|
|
|
|
Apt::Ppa['ppa:kelleyk/emacs'],
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Neovim PPA to get a better version
|
|
|
|
|
#
|
|
|
|
|
apt::ppa { 'ppa:neovim-ppa/stable': }
|
|
|
|
|
|
2020-09-20 20:13:11 +00:00
|
|
|
#
|
|
|
|
|
# Install alacritty from deb archive is not available
|
|
|
|
|
#
|
|
|
|
|
archive { '/tmp/alacritty.deb':
|
2020-11-22 21:07:44 +00:00
|
|
|
ensure => present,
|
|
|
|
|
source => 'https://github.com/alacritty/alacritty/releases/download/v0.4.3/Alacritty-v0.4.3-ubuntu_18_04_amd64.deb',
|
|
|
|
|
checksum => 'f4e40511e1e1495d15e518f5bfccfff2ed69b171ff53964622c1e66bbe954000',
|
|
|
|
|
checksum_type => 'sha256',
|
2020-09-20 20:13:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package { 'alacritty':
|
|
|
|
|
ensure => present,
|
|
|
|
|
provider => dpkg,
|
2020-11-22 21:07:44 +00:00
|
|
|
source => '/tmp/alacritty.deb',
|
|
|
|
|
require => [
|
2020-09-20 20:13:11 +00:00
|
|
|
Archive['/tmp/alacritty.deb']
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-20 11:19:23 +00:00
|
|
|
#
|
|
|
|
|
# Install all the packages that the workstation needs to run
|
|
|
|
|
#
|
|
|
|
|
include core::packages
|
2020-09-20 05:22:17 +00:00
|
|
|
}
|