initial commit of stackdriver_monitoring role for GCP Stackdriver

This commit is contained in:
Eric Anderson 2020-04-24 16:19:46 -07:00
commit ac34d661ff
15 changed files with 246 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']
).get_hosts('all')
def test_hosts_file(host):
f = host.file('/etc/hosts')
assert f.exists
assert f.user == 'root'
assert f.group == 'root'