Setup work editor config and related editor extensions

This commit is contained in:
Jake Howard 2018-06-22 11:23:22 +01:00
parent cc9f46de21
commit 02fd0faf8d
No known key found for this signature in database
GPG key ID: 5BDBFC25F6CF5BBC
3 changed files with 27 additions and 1 deletions

View file

@ -3,3 +3,7 @@ node default {}
node 'too-laptop' {
include devices::laptop
}
node 'too-work' {
include devices::work
}

View file

@ -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| {

View 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'
}
}