a***@gmail.com
2016-04-26 23:55:06 UTC
So I setup the windows software repository using
win_repo: '/salt/states/win/repo-ng'
#
# Location of the master's repo cache file:
win_repo_mastercachefile: 'winrepo.p'
#
# List of git repositories to include with the local repo:
#win_gitrepos:
# - 'https://github.com/saltstack/salt-winrepo-ng.git'
I did the salt-run winrepo.update_git_repos and the salt-run
winrepo.genrepo followed by salt '*' pkg.refresh_db
the first problem I noticed was that the winrepo.p was not getting pushed
down to the client so I made the winrepo.p file into a symbolic link from
the /salt/states/win/repo-ng and then added it to my state which looks like:
c:\salt\var\cache\salt\minion\files\development\win\repo-ng\winrepo.p:
file.managed:
- source: salt://packages/winrepo.p
WebServerRole:
win_servermanager.installed:
- name: Web-Server
7zip:
pkg.installed:
- pkgs:
- 7zip
when I invoke the salt '*' state.highstate I get the following with the package i want to install returning an error:
----------
ID: c:\scripts
Function: file.directory
Result: True
Comment: Directory c:\scripts is in the correct state
Started: 16:04:28.239000
Duration: 31.0 ms
Changes:
----------
ID: c:\salt\var\cache\salt\minion\files\development\win\repo-ng\winrepo.p
Function: file.managed
Result: True
Comment: File c:\salt\var\cache\salt\minion\files\development\win\repo-ng\winrepo.p is in the correct state
Started: 16:04:28.270000
Duration: 63.0 ms
Changes:
----------
ID: WebServerRole
Function: win_servermanager.installed
Name: Web-Server
Result: True
Comment: The feature Web-Server is already installed
Started: 16:04:28.817000
Duration: 2172.0 ms
Changes:
----------
ID: 7zip
Function: pkg.installed
Result: False
Comment: The following packages failed to install/update: 7zip
Started: 16:04:31.458000
Duration: 140.0 ms
Changes:
----------
7zip:
Unable to locate package 7zip
Summary
------------
Succeeded: 3 (changed=1)
Failed: 1
------------
Total states run: 4
my setup is as follows for my states
salt
--states
--base
--development
--pwstest
--box in question is under this one with the above init.sls
--nginx
--otherstate
production
--pws
--nginx
--otherstate
this is what i see if I launch the salt-minion on windows in debug
[DEBUG ] Could not LazyLoad pkg.ex_mod_init
[INFO ] Running state [7zip] at time 16:52:13.711000
[INFO ] Executing state pkg.installed for 7zip
[DEBUG ] Could not LazyLoad pkg.normalize_name
[DEBUG ] Could not LazyLoad pkg.check_db
[INFO ] Caching directory u'win/repo-ng/' for environment 'base'
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] Could not LazyLoad pkg.normalize_name
[ERROR ] Unable to locate package 7zip
[DEBUG ] Could not LazyLoad pkg.hold
[ERROR ] {'7zip': 'Unable to locate package 7zip'}
[DEBUG ] Refreshing modules...
win_repo: '/salt/states/win/repo-ng'
#
# Location of the master's repo cache file:
win_repo_mastercachefile: 'winrepo.p'
#
# List of git repositories to include with the local repo:
#win_gitrepos:
# - 'https://github.com/saltstack/salt-winrepo-ng.git'
I did the salt-run winrepo.update_git_repos and the salt-run
winrepo.genrepo followed by salt '*' pkg.refresh_db
the first problem I noticed was that the winrepo.p was not getting pushed
down to the client so I made the winrepo.p file into a symbolic link from
the /salt/states/win/repo-ng and then added it to my state which looks like:
c:\salt\var\cache\salt\minion\files\development\win\repo-ng\winrepo.p:
file.managed:
- source: salt://packages/winrepo.p
WebServerRole:
win_servermanager.installed:
- name: Web-Server
7zip:
pkg.installed:
- pkgs:
- 7zip
when I invoke the salt '*' state.highstate I get the following with the package i want to install returning an error:
----------
ID: c:\scripts
Function: file.directory
Result: True
Comment: Directory c:\scripts is in the correct state
Started: 16:04:28.239000
Duration: 31.0 ms
Changes:
----------
ID: c:\salt\var\cache\salt\minion\files\development\win\repo-ng\winrepo.p
Function: file.managed
Result: True
Comment: File c:\salt\var\cache\salt\minion\files\development\win\repo-ng\winrepo.p is in the correct state
Started: 16:04:28.270000
Duration: 63.0 ms
Changes:
----------
ID: WebServerRole
Function: win_servermanager.installed
Name: Web-Server
Result: True
Comment: The feature Web-Server is already installed
Started: 16:04:28.817000
Duration: 2172.0 ms
Changes:
----------
ID: 7zip
Function: pkg.installed
Result: False
Comment: The following packages failed to install/update: 7zip
Started: 16:04:31.458000
Duration: 140.0 ms
Changes:
----------
7zip:
Unable to locate package 7zip
Summary
------------
Succeeded: 3 (changed=1)
Failed: 1
------------
Total states run: 4
my setup is as follows for my states
salt
--states
--base
--development
--pwstest
--box in question is under this one with the above init.sls
--nginx
--otherstate
production
--pws
--nginx
--otherstate
this is what i see if I launch the salt-minion on windows in debug
[DEBUG ] Could not LazyLoad pkg.ex_mod_init
[INFO ] Running state [7zip] at time 16:52:13.711000
[INFO ] Executing state pkg.installed for 7zip
[DEBUG ] Could not LazyLoad pkg.normalize_name
[DEBUG ] Could not LazyLoad pkg.check_db
[INFO ] Caching directory u'win/repo-ng/' for environment 'base'
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] Could not LazyLoad pkg.normalize_name
[ERROR ] Unable to locate package 7zip
[DEBUG ] Could not LazyLoad pkg.hold
[ERROR ] {'7zip': 'Unable to locate package 7zip'}
[DEBUG ] Refreshing modules...
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.