Skip to content
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

if authenticationmethods is specified for a local user, configure an sshd exception #340

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

mboisson
Copy link
Member

and does so automatically for the user used by Terraform cloud.

This addresses comment
#307 (comment)

@mboisson
Copy link
Member Author

Tested on the build cluster

site/profile/manifests/users.pp Outdated Show resolved Hide resolved
site/profile/manifests/base.pp Outdated Show resolved Hide resolved
site/profile/manifests/base.pp Outdated Show resolved Hide resolved
site/profile/manifests/base.pp Outdated Show resolved Hide resolved
site/profile/manifests/users.pp Outdated Show resolved Hide resolved
@mboisson
Copy link
Member Author

Hum, Rake complains about

site/profile/manifests/users.pp:195:only_variable_string:WARNING:string containing only a variable

but if I remove the quotes around ${authenticationmethods} on that line, puppet complains with

Jun 10 20:25:55 login2.int.archimedes.c3.ca puppet-agent[594625]: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Syntax error at '{' (file: /etc/puppetlabs/code/environments/production/site/profile/manifests/users.pp, line: 214, column: 21) on node login2

@cmd-ntrf cmd-ntrf force-pushed the centos_authenticationmethods branch from cce997f to b406d31 Compare June 11, 2024 02:51
@cmd-ntrf cmd-ntrf merged commit f3376b1 into ComputeCanada:main Jun 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants