feat: add mkcert install and config
See: https://github.com/FiloSottile/mkcert
This commit is contained in:
parent
9bb1595dec
commit
430871e37a
2 changed files with 22 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ node default {
|
||||||
include core::vscode
|
include core::vscode
|
||||||
include core::emacs
|
include core::emacs
|
||||||
include core::terminal
|
include core::terminal
|
||||||
|
include core::mkcert
|
||||||
|
|
||||||
#
|
#
|
||||||
# Add the private puppet module for all the proprietary bits only if the
|
# Add the private puppet module for all the proprietary bits only if the
|
||||||
|
|
|
||||||
21
site-modules/core/manifests/mkcert.pp
Normal file
21
site-modules/core/manifests/mkcert.pp
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
class core::mkcert {
|
||||||
|
archive { "${user_home}/.local/bin/mkcert":
|
||||||
|
ensure => present,
|
||||||
|
source => 'https://github.com/FiloSottile/mkcert/releases/download/v1.4.2/mkcert-v1.4.2-linux-amd64',
|
||||||
|
checksum => 'e116543bfabb4d88010dda8a551a5d01abbdf9b4f2c949c044b862365038f632',
|
||||||
|
checksum_type => 'sha256',
|
||||||
|
}
|
||||||
|
|
||||||
|
exec { 'mkcert permission':
|
||||||
|
command => "chmod +x ${user_home}/.local/bin/mkcert",
|
||||||
|
path => '/bin:/usr/bin',
|
||||||
|
subscribe => Archive["${user_home}/.local/bin/mkcert"],
|
||||||
|
}
|
||||||
|
|
||||||
|
exec { 'install root ca':
|
||||||
|
command => "${user_home}/.local/bin/mkcert -install",
|
||||||
|
environment => [ "HOME=${user_home}" ],
|
||||||
|
path => '/bin:/usr/bin',
|
||||||
|
subscribe => Archive["${user_home}/.local/bin/mkcert"],
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue