Skip to content

Commit f14b608

Browse files
committed
kvm, linodes: make longview API key Sensitive
1 parent 0923612 commit f14b608

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

data/virtualization/kvm.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
# Config data for virtual machines running under KVM, including Linodes.
33

4+
lookup_options:
5+
profile::vms::kvm::linode::longview_api_key:
6+
convert_to: Sensitive
7+
48
classes:
59
- profile::vms::kvm
610

local-modules/profile/manifests/vms/kvm/linode.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Longview API key.
66
#
77
class profile::vms::kvm::linode (
8-
String[1] $longview_api_key,
8+
Sensitive[String[1]] $longview_api_key,
99
) {
1010
apt::source { 'linode-longview':
1111
location => 'https://apt-longview.linode.com/',
@@ -29,7 +29,7 @@
2929
group => root,
3030
mode => '0400',
3131
content => @("EOT"),
32-
${longview_api_key}
32+
${longview_api_key.unwrap}
3333
| EOT
3434
}
3535
-> service { 'longview':

0 commit comments

Comments
 (0)