Jira (PUP-6516) support the same service name in resources with multiple providers

4 views
Skip to first unread message

Michal Zubac (JIRA)

unread,
Jul 18, 2016, 6:36:03 AM7/18/16
to puppe...@googlegroups.com
Michal Zubac created an issue
 
Puppet / Improvement PUP-6516
support the same service name in resources with multiple providers
Issue Type: Improvement Improvement
Affects Versions: PUP 4.5.2
Assignee: Kylo Ginsberg
Components: Client, Types and Providers
Created: 2016/07/18 3:35 AM
Priority: Normal Normal
Reporter: Michal Zubac

When I want to use multiple service providers on 1 machine (typically sys-v-init & upstart or systemd), I cannot use Service resource to do that.

For example, I want to replace sys-v-init script by upstart. With code like this:

service { 'abc_init':
  name     => 'abc',
  ensure   => 'stopped',
  provider => 'redhat',
}
->
service { 'abc_upstart':
  name     => 'abc',
  ensure   => 'running',
  provider => 'upstart',
}

I get this error:

Error: Evaluation Error: Error while evaluating a Resource Statement, Cannot alias Service[abc_upstart] to ["abc"] at manifest.pp:7; resource ["Service", "abc"] already declared at manifest.pp:1 at manifest.pp:7:1 on node foo.example.com

For Package resource it is already solved in 4.0.0+ (

PUP-1073 ). Services are another case, when it makes sense as well.

Currently the only way is to use Exec to work around that, but it is not nice to write the command myself, when they are already implemented inside Service type.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Jul 18, 2016, 7:48:05 AM7/18/16
to puppe...@googlegroups.com

Moses Mendoza (JIRA)

unread,
Sep 22, 2016, 5:07:04 PM9/22/16
to puppe...@googlegroups.com
Moses Mendoza updated an issue
Change By: Moses Mendoza
Labels: manage-service
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Doug Rosser (JIRA)

unread,
May 16, 2017, 3:06:02 PM5/16/17
to puppe...@googlegroups.com
Doug Rosser updated an issue
Change By: Doug Rosser
Labels: manage-service  triaged

Geoff Nichols (JIRA)

unread,
Nov 11, 2017, 8:36:03 PM11/11/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Team: Platform  OS  Core
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 5, 2020, 2:50:02 AM3/5/20
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-6516
 
Re: support the same service name in resources with multiple providers

Trying to manage services across different providers seems like asking for trouble. I'm going to close this, please reopen if it's still a concern.

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 5, 2020, 2:50:03 AM3/5/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Team: Coremunity Night's Watch
Reply all
Reply to author
Forward
0 new messages