Removing smart variables

Hi all,

Is there a way to get Foreman to remove smart variables that are associated
with a module when the module is removed or is there a way to delete more
than one smart variable at a time? I've been adding modules to test, but
after removal I see the variables are still there and they're no longer
associated with any module.

Thanks,
Gareth

Bump - I'm intested in this also.

Thanks.

··· Le jeudi 17 avril 2014 04:23:42 UTC-4, Gareth Allen a écrit : > > Hi all, > > Is there a way to get Foreman to remove smart variables that are > associated with a module when the module is removed or is there a way to > delete more than one smart variable at a time? I've been adding modules to > test, but after removal I see the variables are still there and they're no > longer associated with any module. > > Thanks, > Gareth >

Hello,

Any news on this topic?
I need to clean all "orphan" smart variables

Thanks,
Anthony

··· On Thursday, April 17, 2014 at 10:23:42 AM UTC+2, Gareth Allen wrote: > > Hi all, > > Is there a way to get Foreman to remove smart variables that are > associated with a module when the module is removed or is there a way to > delete more than one smart variable at a time? I've been adding modules to > test, but after removal I see the variables are still there and they're no > longer associated with any module. > > Thanks, > Gareth >

You can go to Configure -> Smart variables search for "puppetclass = "
then delete them one by one. There isn't an option to delete all at once
this way.
Using the API to find and delete all of them might be a better option.

··· On Wed, May 20, 2015 at 6:58 PM, Anthony Chevalet < anthony.chevalet@gmail.com> wrote:

Hello,

Any news on this topic?
I need to clean all “orphan” smart variables

Thanks,
Anthony

On Thursday, April 17, 2014 at 10:23:42 AM UTC+2, Gareth Allen wrote:

Hi all,

Is there a way to get Foreman to remove smart variables that are
associated with a module when the module is removed or is there a way to
delete more than one smart variable at a time? I’ve been adding modules to
test, but after removal I see the variables are still there and they’re no
longer associated with any module.

Thanks,
Gareth


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

I get 178 pages of orphan variables … So I will write a script that uses
the API :slight_smile:
Thank you!
Anthony

··· 2015-05-21 15:10 GMT+02:00 Ori Rabin :

You can go to Configure -> Smart variables search for "puppetclass = "
then delete them one by one. There isn’t an option to delete all at once
this way.
Using the API to find and delete all of them might be a better option.

On Wed, May 20, 2015 at 6:58 PM, Anthony Chevalet < > anthony.chevalet@gmail.com> wrote:

Hello,

Any news on this topic?
I need to clean all “orphan” smart variables

Thanks,
Anthony

On Thursday, April 17, 2014 at 10:23:42 AM UTC+2, Gareth Allen wrote:

Hi all,

Is there a way to get Foreman to remove smart variables that are
associated with a module when the module is removed or is there a way to
delete more than one smart variable at a time? I’ve been adding modules to
test, but after removal I see the variables are still there and they’re no
longer associated with any module.

Thanks,
Gareth


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/sJ0RqtfI8UY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.