feat(emacs): add emacs install and setup
# modified: Puppetfile
This commit is contained in:
parent
01d6024067
commit
195b5060ed
5 changed files with 48 additions and 8 deletions
|
|
@ -13,3 +13,8 @@ mod 'puppetlabs-docker', '3.10.0'
|
||||||
# VSC Repo to install all the git repos
|
# VSC Repo to install all the git repos
|
||||||
#
|
#
|
||||||
mod 'puppetlabs-vcsrepo', '3.1.1'
|
mod 'puppetlabs-vcsrepo', '3.1.1'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Archive module for downloading and unpacking archives
|
||||||
|
#
|
||||||
|
mod 'puppet-archive', '4.6.0'
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,35 @@ node default {
|
||||||
$user = lookup('user', String, 'first', $id)
|
$user = lookup('user', String, 'first', $id)
|
||||||
notify { "Running as ${id} for ${user} with home of ${user_home}": }
|
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
|
# Install docker and docker-compose
|
||||||
#
|
#
|
||||||
class { 'docker': version => 'latest' }
|
class { 'docker': version => 'latest' }
|
||||||
class {'docker::compose': ensure => present }
|
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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,5 @@ node default {
|
||||||
include core::tmux
|
include core::tmux
|
||||||
include core::fonts
|
include core::fonts
|
||||||
include core::vscode
|
include core::vscode
|
||||||
|
include core::emacs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
bolt apply manifests/root.pp -vv --targets localhost --run-as root --sudo-password-prompt
|
bolt apply manifests/root.pp --targets localhost --run-as root --sudo-password-prompt
|
||||||
bolt apply manifests/workstation.pp -vv --targets localhost
|
bolt apply manifests/workstation.pp --targets localhost
|
||||||
|
|
|
||||||
13
site-modules/core/manifests/emacs.pp
Normal file
13
site-modules/core/manifests/emacs.pp
Normal 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'),
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue