Setup work editor config and related editor extensions
This commit is contained in:
parent
cc9f46de21
commit
02fd0faf8d
3 changed files with 27 additions and 1 deletions
|
@ -3,3 +3,7 @@ node default {}
|
|||
node 'too-laptop' {
|
||||
include devices::laptop
|
||||
}
|
||||
|
||||
node 'too-work' {
|
||||
include devices::work
|
||||
}
|
||||
|
|
|
@ -32,7 +32,8 @@ class config::vscode {
|
|||
'formulahendry.auto-close-tag',
|
||||
'James-Yu.latex-workshop',
|
||||
'docsmsft.docs-authoring-pack',
|
||||
'ban.spellright'
|
||||
'ban.spellright',
|
||||
'editorconfig.editorconfig',
|
||||
];
|
||||
|
||||
$extensions.each |String $extension| {
|
||||
|
|
21
modules/devices/manifests/work.pp
Normal file
21
modules/devices/manifests/work.pp
Normal file
|
@ -0,0 +1,21 @@
|
|||
class devices::work {
|
||||
file { 'Projects directory':
|
||||
ensure => directory,
|
||||
path => '/home/jake/Projects',
|
||||
owner => 'jake'
|
||||
}
|
||||
-> vcsrepo { 'Vim runtime':
|
||||
ensure => latest,
|
||||
provider => git,
|
||||
user => 'jake',
|
||||
path => '/home/jake/Projects/dotfiles',
|
||||
source => 'git@github.com:dabapps/dotfiles',
|
||||
}
|
||||
-> file { 'DabApps dotfiles':
|
||||
ensure => link,
|
||||
owner => 'jake',
|
||||
target => '/home/jake/Projects/dotfiles/.editorconfig',
|
||||
path => '/home/jake/Projects/.editorconfig',
|
||||
mode => '0644'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue