chore(pp): remove vscode install
This now get installed in other ways. What already installed on the last two setups
This commit is contained in:
parent
8ace3ffffe
commit
89ee851600
3 changed files with 0 additions and 56 deletions
|
|
@ -18,11 +18,6 @@ node default {
|
|||
class { 'docker': version => 'latest' }
|
||||
class { 'docker::compose': ensure => present, version => '1.29.2' }
|
||||
|
||||
#
|
||||
# Install vscode
|
||||
#
|
||||
class { 'vscode': }
|
||||
|
||||
#
|
||||
# Neovim PPA to get a better version
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
define vscode::extention {
|
||||
exec { "code_install_${title}":
|
||||
command => "code --install-extension ${title}",
|
||||
path => '/usr/bin:/usr/local/bin:/usr/sbin:/bin',
|
||||
unless => "code --list-extensions | grep ${title}",
|
||||
provider => shell,
|
||||
}
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
class vscode {
|
||||
|
||||
archive { '/tmp/microsoft.asc':
|
||||
ensure => present,
|
||||
source => 'https://packages.microsoft.com/keys/microsoft.asc',
|
||||
checksum => '2cfd20a306b2fa5e25522d78f2ef50a1f429d35fd30bd983e2ebffc2b80944fa',
|
||||
checksum_type => 'sha256',
|
||||
}
|
||||
|
||||
exec { 'gpg --dearmor /tmp/microsoft.asc':
|
||||
path => ['/usr/bin', '/usr/sbin',],
|
||||
creates => '/tmp/microsoft.asc.gpg',
|
||||
require => [
|
||||
Archive['/tmp/microsoft.asc'],
|
||||
]
|
||||
}
|
||||
|
||||
file { '/etc/apt/trusted.gpg.d/microsoft.gpg':
|
||||
ensure => present,
|
||||
source => 'file:///tmp/microsoft.asc.gpg',
|
||||
require => [
|
||||
Exec['gpg --dearmor /tmp/microsoft.asc'],
|
||||
]
|
||||
}
|
||||
|
||||
apt::source { 'vscode':
|
||||
comment => 'This is the official VSCode repository',
|
||||
location => 'https://packages.microsoft.com/repos/vscode',
|
||||
architecture => 'amd64',
|
||||
release => 'stable',
|
||||
repos => 'main',
|
||||
include => {
|
||||
'deb' => true,
|
||||
},
|
||||
}
|
||||
|
||||
package { 'code':
|
||||
ensure => installed,
|
||||
require => [
|
||||
Apt::Source['vscode'],
|
||||
],
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue