Ресурс google_runtime_config_variable
Синтаксис
Используется google_runtime_config_variable для проверки ресурса переменной Google.
Примеры
describe google_runtime_config_variable(project: 'chef-gcp-inspec', config: 'inspec-gcp-runtime-config', name: 'prod-variables/hostname') do
it { should exist }
its('text') { should cmp 'example.com' }
end
describe google_runtime_config_variable(project: 'chef-gcp-inspec', config: 'inspec-gcp-runtime-config', name: 'nonexistent') do
it { should_not exist }
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_runtime_config_variable:
value- Двоичное значение переменной. Должно быть установлено либо это значение, либо
text. text- Строковое значение переменной. Должно быть установлено либо это значение, либо
value. name- Имя ресурса переменной.
config- Имя конфигурации runtime, к которой относится эта переменная.
Разрешения GCP
Убедитесь, что для текущего проекта включен API Управления ресурсами Cloud.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_runtime_config_variable/