Skip to content

Ubuntu vivid should use systemd not upstart #769

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

Merged
merged 1 commit into from
Dec 15, 2015

Conversation

gabriel403
Copy link
Contributor

No description provided.

default: {
$server_service_provider = upstart
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

and this whole thing can be replaced with a selector:

$server_service_provider = $::lsbdistcodename {
     'vivid' => 'systemd',
     default: 'upstart'
}

and now the problem becomes extending it for future versions…

i'm really starting to feel the burden of the systemd breakage in debuntu… :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@igalic thanks for the tip! Will implement

@DavidS
Copy link
Contributor

DavidS commented Oct 29, 2015

Please don't use codenames for these checks, but a open range on the release version. We can expect that from now on all Ubuntu releases will use systemd.

@gabriel403
Copy link
Contributor Author

@DavidS would be glad to, but you're gonna have to point me in the right direction for that

@gabriel403
Copy link
Contributor Author

@DavidS versioncmp($::lsbdistrelease, '14.10') == 1 ?

@DavidS
Copy link
Contributor

DavidS commented Oct 29, 2015

Almost :-) lsbdistrelease is not available always, but operatingsystemmajrelease is. to aid readability use > 0:

versioncmp($::operatingsystemmajrelease, '14.10') > 0

@bmjen
Copy link
Contributor

bmjen commented Nov 19, 2015

Hi @gabriel403, any progress on this PR?

@gabriel403
Copy link
Contributor Author

@bmjen hi sorry! Will sort this tonight :)

@gabriel403
Copy link
Contributor Author

@bmjen @DavidS sorry about the huge delay on this, should be sorted now, if you can validate it's as you expect I'll rebase and squash

@DavidS
Copy link
Contributor

DavidS commented Dec 15, 2015

@gabriel403 looks good, except for the missing { :

Syntax error at 'server_service_provider'; expected '}' at /home/travis/build/puppetlabs/puppetlabs-mysql/manifests/params.pp:363

@gabriel403
Copy link
Contributor Author

@DavidS looks like we have a winner? Anything else you'd like me to do?

DavidS added a commit that referenced this pull request Dec 15, 2015
Ubuntu vivid should use systemd not upstart
@DavidS DavidS merged commit c353259 into puppetlabs:master Dec 15, 2015
@DavidS
Copy link
Contributor

DavidS commented Dec 15, 2015

Celebrate? :-) Thanks!

@gabriel403
Copy link
Contributor Author

Woo! Thanks @DavidS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants