Why doesn't SaltStack pkg.installed command recognize installed packages on CentOS 6.6

ninapavlich

I have a series of formulas that worked fine on Ubuntu, but I'm finding that they don't work correctly on my minion running CentOS release 6.6 (Final). The minion is running salt version: salt-minion 2014.7.0 (Helium)

For example, the git-core package is not working:

git-core:
    pkg.installed

When I run highstate, I get this error:

[user] out: ----------
[user] out: ID: git-core
[user] out: Function: pkg.installed
[user] out: Result: False
[user] out: Comment: Package 'git-core' not found (possible matches: git, wt-git)
[user] out: Changes:   
[user] out: ----------

When I attempt to manually install the requirements on the server, they appear to be already installed:

root@host [225 01:41:35 /home/project]# yum install git-core
Loaded plugins: changelog, downloadonly, fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * epel: mirror.steadfast.net
Package wt-git-1.7.1-1.x86_64 already installed and latest version
Nothing to do

Why does git-core appear to be 'not found' by SaltStack, when it's installed?

BTW, there is a whole set of errors across packages, not just git, including:

[user] out: ----------
[user] out:           ID: ssh
[user] out:     Function: service.running
[user] out:       Result: False
[user] out:      Comment: The named service ssh is not available
[user] out:      Changes:   
[user] out: ----------
[user] out:           ID: iptables-persistent
[user] out:     Function: pkg.installed
[user] out:       Result: False
[user] out:      Comment: The following package(s) were not found, and no possible matches were found in the package db: iptables-persistent
[user] out:      Changes:   
[user] out: ----------
[user] out:           ID: iptables-persistent
[user] out:     Function: service.running
[user] out:       Result: False
[user] out:      Comment: The named service iptables-persistent is not available
[user] out:      Changes:   
[user] out: ----------
[user] out:           ID: openjdk-6-jdk
[user] out:     Function: pkg.installed
[user] out:       Result: False
[user] out:      Comment: The following package(s) were not found, and no possible matches were found in the package db: openjdk-6-jdk
[user] out:      Changes:   
[user] out: ----------
[user] out:           ID: tomcat6
[user] out:     Function: pkg.installed
[user] out:       Result: False
[user] out:      Comment: The following packages failed to install/update: tomcat6.
[user] out:      Changes:   
[user] out: ----------
Joe Block

I'm sure you've already found this, but for the sake of the next person, it's sshd on my CentOS boxes. Try something like:

{% if grains['os_family']=="RedHat" %}

sshd:
    service.running

{% elif grains['os_family']=="Debian" %}

ssh:
    service.running

{% endif %}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

NuGet doesn't show installed packages

From Dev

Python doesn't find packages that are installed with Conda

From Dev

How to get all URLs for packages that would be installed for `apt install <pkg>` command

From Dev

RVM doesn't recognize installed gem, so bundle install fails

From Dev

what pycharm doesn't recognize the pymongo package that was installed in virtualenv

From Dev

Visual Studio doesn't recognize .NET Framework 4.6.2 is installed

From Dev

Unable to run a jsp project in eclipse installed in centos 6

From Dev

Why are packages listed as "installed", "installed,automatic", or "installed,local"?

From Dev

Sudo apt-get update doesn't work - no packages installed

From Dev

Why doesn't it recognize the Leaf command: #loop

From Dev

Why doesn't the command `gem list` include gems installed with bundler's :git option?

From Dev

Centos7 docker-py doesn't seem to be installed

From Dev

Using 'rpm -i' to install a package on CentOS6 but getting dependency error, even though I have installed the dependency, why?

From Dev

Identify installed software packages on Centos machine

From Dev

Haskell packages not listed in ghc-pkg when installed through Nix

From Dev

Why couldn't the latest version of rsync be installed on CentOS 7.2?

From Dev

Why does Stack not recognize the dependency it just installed?

From Dev

Eclipse Mars integration with WAS Liberty server 8.5.5.6 does not recognize some Java EE 6 installed features

From Dev

saltstack state for cuda setup - how to force apt-get --force-yes in salt pkg.installed

From Dev

Command not Found in centos 6

From Dev

Xcode 6 doesn't recognize \1, \2, \# patterns anymore?

From Dev

Xcode 6 Editor doesn't recognize unit tests

From Dev

How can I get Unity to recognize installed applications it doesn't list?

From Dev

How can I get Unity to recognize installed applications it doesn't list?

From Dev

Why are utopic packages installed by default on 14.04.2?

From Dev

Why are almost all packages marked as manually installed?

From Dev

Selenium doesn't seem to be installed

From Dev

Pipenv installed, but "doesn't exist"

From Dev

Why are new packages been installed after using command Update-Package --reinstall

Related Related

  1. 1

    NuGet doesn't show installed packages

  2. 2

    Python doesn't find packages that are installed with Conda

  3. 3

    How to get all URLs for packages that would be installed for `apt install <pkg>` command

  4. 4

    RVM doesn't recognize installed gem, so bundle install fails

  5. 5

    what pycharm doesn't recognize the pymongo package that was installed in virtualenv

  6. 6

    Visual Studio doesn't recognize .NET Framework 4.6.2 is installed

  7. 7

    Unable to run a jsp project in eclipse installed in centos 6

  8. 8

    Why are packages listed as "installed", "installed,automatic", or "installed,local"?

  9. 9

    Sudo apt-get update doesn't work - no packages installed

  10. 10

    Why doesn't it recognize the Leaf command: #loop

  11. 11

    Why doesn't the command `gem list` include gems installed with bundler's :git option?

  12. 12

    Centos7 docker-py doesn't seem to be installed

  13. 13

    Using 'rpm -i' to install a package on CentOS6 but getting dependency error, even though I have installed the dependency, why?

  14. 14

    Identify installed software packages on Centos machine

  15. 15

    Haskell packages not listed in ghc-pkg when installed through Nix

  16. 16

    Why couldn't the latest version of rsync be installed on CentOS 7.2?

  17. 17

    Why does Stack not recognize the dependency it just installed?

  18. 18

    Eclipse Mars integration with WAS Liberty server 8.5.5.6 does not recognize some Java EE 6 installed features

  19. 19

    saltstack state for cuda setup - how to force apt-get --force-yes in salt pkg.installed

  20. 20

    Command not Found in centos 6

  21. 21

    Xcode 6 doesn't recognize \1, \2, \# patterns anymore?

  22. 22

    Xcode 6 Editor doesn't recognize unit tests

  23. 23

    How can I get Unity to recognize installed applications it doesn't list?

  24. 24

    How can I get Unity to recognize installed applications it doesn't list?

  25. 25

    Why are utopic packages installed by default on 14.04.2?

  26. 26

    Why are almost all packages marked as manually installed?

  27. 27

    Selenium doesn't seem to be installed

  28. 28

    Pipenv installed, but "doesn't exist"

  29. 29

    Why are new packages been installed after using command Update-Package --reinstall

HotTag

Archive