Skip to content

Commit

Permalink
Add a couple fields
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Dec 22, 2022
1 parent 4d35b65 commit d7d4146
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,39 @@ resource "google_os_config_os_policy_assignment" "primary" {
}
}
}
inventory_filters {
os_short_name = "centos"
os_version = "8.*"
}

resources {
id = "exec1"
exec {
validate {
interpreter = "SHELL"
args = ["arg1"]
file {
local_path = "$HOME/script.sh"
}
output_file_path = "$HOME/out"
}
enforce {
interpreter = "SHELL"
args = ["arg1"]
file {
allow_insecure = true
remote {
uri = "https://www.example.com/script.sh"
sha256_checksum = "c7938fed83afdccbb0e86a2a2e4cad7d5035012ca3214b4a61268393635c3063"
}
}
output_file_path = "$HOME/out"
}
}
}
}
allow_no_resource_group_match = false
description = "A test os policy"
}

rollout {
Expand Down

0 comments on commit d7d4146

Please sign in to comment.