Skip to content

Instantly share code, notes, and snippets.

@ffpollock
Created April 4, 2017 16:57
Show Gist options
  • Save ffpollock/b99c01ab6217fbda04c358b4531aa9e9 to your computer and use it in GitHub Desktop.
Save ffpollock/b99c01ab6217fbda04c358b4531aa9e9 to your computer and use it in GitHub Desktop.
inspec compliance login_automate https://MYAUTOMATE-URL.COM --user USERNAME --ent MYENTERPRISE --usertoken MYTOKEN --insecure
Token can be gathered from - https://YOUR_AUTOMATE_HOST/e/YOUR_AUTOMATE_ENTERPRISE/#/dashboard?token
Once succesful try a list
inspec compliance profiles
Positive response should be no avalible profiles
inspec compliance upload MYPROFILE.ZIP
Confirm the profile is uploaded by re-running
inspec compliance profiles
and also viewing it inside the Automate server under Compliance -> Profiles
Now update the role's second 'profile field with the identifier'
"profiles": [
{
"name": "linux-baseline",
"compliance": "devsec/linux-baseline"
}
Where the devsec/linux-baseline is the identifier in the Compliance -> Profiles Page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment