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

Amazon Linux support #230

Closed
clinty opened this issue Jul 27, 2017 · 8 comments
Closed

Amazon Linux support #230

clinty opened this issue Jul 27, 2017 · 8 comments

Comments

@clinty
Copy link

clinty commented Jul 27, 2017

Please add support for Amazon Linux. It should be similar to RHEL5, with
$sx_fs_mount = '/selinux' and $package_name = 'policycoreutils'

Output of facter os:

{
  architecture => "x86_64",
  distro => {
    codename => "n/a",
    description => "Amazon Linux AMI release 2017.03",
    id => "AmazonAMI",
    release => {
      full => "2017.03",
      major => "2017",
      minor => "03"
    },
    specification => ":base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch"
  },
  family => "RedHat",
  hardware => "x86_64",
  name => "Amazon",
  release => {
    full => "2017.03",
    major => "2017",
    minor => "03"
  },
  selinux => {
    config_mode => "enforcing",
    current_mode => "enforcing",
    enabled => true,
    enforced => true,
    policy_version => "30"
  }
}
@oranenj
Copy link
Contributor

oranenj commented Jul 27, 2017

Is there a way to test on Amazon Linux? IIRC the lack of good means to run tests was the main reason we dropped support during the 1.0.0 refactoring.

@clinty
Copy link
Author

clinty commented Jul 27, 2017

I don't think I understand the question. Are you asking for a way that doesn't require running an Amazon Linux instance on AWS?

@oranenj
Copy link
Contributor

oranenj commented Jul 27, 2017

@clinty: yes. Beaker tests for other operating systems can be run locally using Virtualbox.

@clinty
Copy link
Author

clinty commented Jul 28, 2017

If someone made an unofficial virtualbox image, would that suffice?

@oranenj
Copy link
Contributor

oranenj commented Jul 28, 2017

A vagrant box that beaker can use would be fine, I suppose. I would accept patches for Amazon Linux even if it weren't tested, but without a way to run acceptance tests, there's no way to guarantee things will not break between releases.

@clinty
Copy link
Author

clinty commented Jul 29, 2017

Pull request sent. I'll pursue the testing angle.

@clinty
Copy link
Author

clinty commented Aug 2, 2017

Does https://hub.docker.com/_/amazonlinux/ help at all?

@oranenj
Copy link
Contributor

oranenj commented Aug 2, 2017

@clinty: This issue was closed by the pull req merge. You should probably create another issue for the testing stuff.

Unfortunately, SELinux can't really be tested inside a container, so it'll have to be a virtual machine.

It does look like there's an amazon linux vagrant box: https://app.vagrantup.com/mvbcoding/boxes/awslinux/

That is something which might be useful.

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

No branches or pull requests

2 participants