-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make a macOS user capable of being the service's user-account #40
base: develop
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -1,15 +1,15 @@ | |||
--- | |||
- name: make password for user | |||
set_fact: | |||
user_password: "{{ lookup('password', '/tmp/bk-agent-password length=32 chars=ascii_letters,digits,punctuation') }}" | |||
buildkite_agent_user_password: "{{ lookup('password', '/tmp/bk-agent-password length=32 chars=ascii_letters,digits,punctuation') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was renamed to namespace the fact to the role.
Changes
Now, running the role on macOS will create a user suitable for being the service's account.
That user has various sensible defaults set up
This is consistent with the behaviour
Verification
Local anka bake starting from a bare-OS image that does not have the
buildkite-agent
created within it:verify that the buildkite-agent binary can start up and run when the user is created via this method. Screenshot of connected-to-bk agent page:
confirm all of the above via a physical macOS: