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

Suse integration #156

Closed
wants to merge 2 commits into from
Closed

Suse integration #156

wants to merge 2 commits into from

Conversation

Peuserik
Copy link

We work mainly with SLES and OpenSUSE OS-Images, so we need to use them as kitchen-docker baseimage for testing purposes.

This PR enables kitchen-docker to work on Suse-Based-Images properly.

Tested with SLES12 and OpenSUSE 13.2

@zuazo zuazo mentioned this pull request Mar 1, 2016
if config[:platform] == 'opensuse' || config[:platform] == 'sles'
userpw = <<-eos
RUN if ! getent passwd #{username}; then useradd -d /home/#{username} -m -s /bin/bash #{username}; fi
RUN echo #{username}:`perl -e 'print crypt("#{password}", "salt")'` | chpasswd -e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to actually be required. Was there a reason you added it?

@Peuserik
Copy link
Author

Peuserik commented Mar 2, 2016

@coderanger thanks for your comment
and sorry for my bad english skills.

sles and opensuse do have a security policy that will deny the built in way to set the password. Its quite few months ago so i can't remember the exact name of the lib that is doing that...

but on Suse machines the line
echo #{username}:#{password} | chpasswd
will result in following error on a normal kitchen test, or kitchen create

   Step 7 : RUN echo kitchen:kitchen | chpasswd
    ---> Running in ef9ed93c2b6e
   BAD PASSWORD: it is based on a dictionary word
   BAD PASSWORD: is too simple

the kitchen create finishes but you can't connect with ssh provisioner afterwards.

The line you commented on creates a way around the password verification with encrypting the password before piping it into chpasswd

I hope ist was understandable. :)

@CarpathianUA
Copy link

Hi guys,
I'm one of those people who are patiently waiting for SLES/OpenSuse integration.
Hope it will be realized.
Thanks in advance.

@amontalban
Copy link

Another interested user, not sure if this is going to be managed anytime soon but open to help.

Thanks!

@tas50
Copy link
Member

tas50 commented Mar 15, 2019

I'm going to close this out at this point since we have opensuse and opensuse leap in the case statements as well as testing. Feel free to open a new PR if you think something is still missing.

@tas50 tas50 closed this Mar 15, 2019
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.

None yet

5 participants