feat(emacs): add emacs install and setup

#	modified:   Puppetfile
This commit is contained in:
Ade Attwood 2020-09-20 12:19:23 +01:00
parent 01d6024067
commit 195b5060ed
5 changed files with 48 additions and 8 deletions

View file

@ -13,3 +13,8 @@ mod 'puppetlabs-docker', '3.10.0'
# VSC Repo to install all the git repos
#
mod 'puppetlabs-vcsrepo', '3.1.1'
#
# Archive module for downloading and unpacking archives
#
mod 'puppet-archive', '4.6.0'

View file

@ -12,14 +12,35 @@ node default {
$user = lookup('user', String, 'first', $id)
notify { "Running as ${id} for ${user} with home of ${user_home}": }
#
# Install all the packages that the workstation needs to run
#
include core::packages
#
# Install docker and docker-compose
#
class { 'docker': version => 'latest' }
class { 'docker::compose': ensure => present }
#
# Install vscode
#
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': }
#
# Install all the packages that the workstation needs to run
#
include core::packages
}

View file

@ -23,4 +23,5 @@ node default {
include core::tmux
include core::fonts
include core::vscode
include core::emacs
}

View file

@ -1,4 +1,4 @@
#!/bin/sh
bolt apply manifests/root.pp -vv --targets localhost --run-as root --sudo-password-prompt
bolt apply manifests/workstation.pp -vv --targets localhost
bolt apply manifests/root.pp --targets localhost --run-as root --sudo-password-prompt
bolt apply manifests/workstation.pp --targets localhost

View file

@ -0,0 +1,13 @@
class core::emacs {
vcsrepo { "${user_home}/.emacs.d":
source => 'https://github.com/syl20bnr/spacemacs.git',
provider => 'git',
user => $user,
revision => 'develop',
}
file { "${user_home}/.spacemacs":
ensure => 'link',
target => find_file('core/spacemacs'),
}
}