...
1label: Config Connector OSConfigOSPolicyAssignment
2markdownDescription: Creates yaml for a OSConfigOSPolicyAssignment resource
3insertText: |
4 apiVersion: osconfig.cnrm.cloud.google.com/v1beta1
5 kind: OSConfigOSPolicyAssignment
6 metadata:
7 name: \${1:osconfigospolicyassignment-name}
8 spec:
9 projectRef:
10 external: \${2:projects/[PROJECT_ID?]}
11 location: \${3:us-west2-a}
12 description: \${4:A test os policy assignment}
13 osPolicies:
14 - id: \${5:policy}
15 description: \${6:A test os policy}
16 mode: \${7:VALIDATION}
17 resourceGroups:
18 - inventoryFilters:
19 - osShortName: \${8:centos}
20 osVersion: \${9:8.*}
21 resources:
22 - id: \${10:apt}
23 pkg:
24 desiredState: \${11:INSTALLED}
25 apt:
26 name: \${12:bazel}
27 - id: \${13:deb1}
28 pkg:
29 desiredState: \${14:INSTALLED}
30 deb:
31 source:
32 localPath: \${15:HOME/package.deb}
33 - id: \${16:deb2}
34 pkg:
35 desiredState: \${17:INSTALLED}
36 deb:
37 pullDeps: \${18:true}
38 source:
39 allowInsecure: \${19:true}
40 remote:
41 uri: \${20:ftp.us.debian.org/debian/package.deb}
42 sha256Checksum: \${21:3bbfd1043cd7afdb78cf9afec36c0c5370d2fea98166537b4e67f3816f256025}
43 - id: \${22:deb3}
44 pkg:
45 desiredState: \${23:INSTALLED}
46 deb:
47 pullDeps: \${24:true}
48 source:
49 gcs:
50 bucket: \${25:test-bucket}
51 object: \${26:test-object}
52 generation: \${27:1}
53 - id: \${28:yum}
54 pkg:
55 desiredState: \${29:INSTALLED}
56 yum:
57 name: \${30:gstreamer-plugins-base-devel.x86_64}
58 - id: \${31:zypper}
59 pkg:
60 desiredState: \${32:INSTALLED}
61 zypper:
62 name: \${33:gcc}
63 - id: \${34:rpm1}
64 pkg:
65 desiredState: \${35:INSTALLED}
66 rpm:
67 pullDeps: \${36:true}
68 source:
69 localPath: \${37:HOME/package.rpm}
70 - id: \${38:rpm2}
71 pkg:
72 desiredState: \${39:INSTALLED}
73 rpm:
74 source:
75 allowInsecure: \${40:true}
76 remote:
77 uri: \${41:https://mirror.jaleco.com/centos/8.3.2011/BaseOS/x86_64/os/Packages/efi-filesystem-3-2.el8.noarch.rpm}
78 sha256Checksum: \${42:3bbfd1043cd7afdb78cf9afec36c0c5370d2fea98166537b4e67f3816f256025}
79 - id: \${43:rpm3}
80 pkg:
81 desiredState: \${44:INSTALLED}
82 rpm:
83 source:
84 gcs:
85 bucket: \${45:test-bucket}
86 object: \${46:test-object}
87 generation: \${47:1}
88 - resources:
89 - id: \${48:apt-to-deb}
90 pkg:
91 desiredState: \${49:INSTALLED}
92 apt:
93 name: \${50:bazel}
94 - id: \${51:deb-local-path-to-gcs}
95 pkg:
96 desiredState: \${52:INSTALLED}
97 deb:
98 source:
99 localPath: \${53:HOME/package.deb}
100 - id: \${54:googet}
101 pkg:
102 desiredState: \${55:INSTALLED}
103 googet:
104 name: \${56:gcc}
105 - id: \${57:msi1}
106 pkg:
107 desiredState: \${58:INSTALLED}
108 msi:
109 source:
110 localPath: \${59:HOME/package.msi}
111 properties:
112 - \${60:REBOOT=ReallySuppress}
113 - id: \${61:msi2}
114 pkg:
115 desiredState: \${62:INSTALLED}
116 msi:
117 source:
118 allowInsecure: \${63:true}
119 remote:
120 uri: \${64:https://remote.uri.com/package.msi}
121 sha256Checksum: \${65:3bbfd1043cd7afdb78cf9afec36c0c5370d2fea98166537b4e67f3816f256025}
122 sha256Checksum: \${66:3bbfd1043cd7afdb78cf9afec36c0c5370d2fea98166537b4e67f3816f256025}
123 - id: \${67:msi3}
124 pkg:
125 desiredState: \${68:INSTALLED}
126 msi:
127 source:
128 gcs:
129 bucket: \${69:test-bucket}
130 object: \${70:test-object}
131 generation: \${71:1}
132 allowNoResourceGroupMatch: \${72:false}
133 instanceFilter:
134 all: \${73:false}
135 inclusionLabels:
136 - labels:
137 label-one: \${74:value-one}
138 exclusionLabels:
139 - labels:
140 label-two: \${75:value-two}
141 inventories:
142 - osShortName: \${76:centos}
143 osVersion: \${77:8.*}
144 rollout:
145 disruptionBudget:
146 fixed: \${78:1}
147 minWaitDuration: \${79:3.5s}
View as plain text