saltstack-formulas / salter

Salter orchestrates software profiles onto Linux/MacOS/FreeBSD/Windows without fuss.
Apache License 2.0
6 stars 5 forks source link

[BUG] Salter is missing remove metaprofiles #60

Closed noelmcloughlin closed 4 years ago

noelmcloughlin commented 4 years ago

Bug details

Describe the bug

After adding metaprofile you would expect to be able to remove it. Salter is missing lots of remove metaprofiles in /salter/file_roots/remove/ directory

Steps to reproduce the bug

[vagrant@centos7 ~]$ sudo /usr/local/bin/salter add kubernetes -u vagrant
==> This script will add: kubernetes
press return to continue or control-c to abort
cloning kubernetes-formula from saltstack-formulas ...

local:
    ----------
    base:
        - kubernetes
run salt: this takes a while, please be patient ...
------------
Succeeded: 8 (changed=8)
Failed:    0
------------
See full log in [ /tmp/saltstack-formulas-salter/log.202001251529 ]

/////////////////////////////////////////////////////////////////
        kubernetes for salter has completed
////////////////////////////////////////////////////////////////

[vagrant@centos7 ~]$ sudo /usr/local/bin/salter remove kubernetes
No profile named [kubernetes] found

Expected behaviour

[vagrant@centos7 ~]$ sudo /usr/local/bin/salter add kubernetes -u vagrant # WORKS [vagrant@centos7 ~]$ sudo /usr/local/bin/salter remove kubernetes . # WORKS

Attempts to fix the bug

Additional context