Closed HabibaAmina closed 6 years ago
@HabibaAmina, what happens when you run salt "Test" state.sls linux.states.webserver_linux
?
Hi, it's work when my state in local ( server Master ) all Application, but just i push state in bitbhuket, doesn't work, In bitbucket when i execute state ssh in environnement base it's work when , just grains webserver_linux dont work.
this configuration master.conf:
file_roots:
base:
- /srv/salt
webserver-lamp:
- /srv/salt
webserver-tuning:
- /srv/salt
fileserver_backend:
- git
- roots
master_roots:
base:
- /srv/salt-master
You also need
gitfs_remotes:
- git://bitbucket.com/mybitbucket.git
Thanks you Justin for your reply,
I have configured the master.conf,when I do a highstate it install the basic applications, but not grains, it's not even think. when I set them up locally it works perfectly.
is what I have to add some level configuration master.conf ?
salt "Test" state.sls linux.states.webserver_linux? it's work when i have all states in local. in bitbucket It does not work.
this config master:
file_roots: base: it's work for both
webserver-lamp:
fileserver_backend:
gitfs_remotes:
interface: adresse server
this file grains:
/etc/salt/grains
roles:
Bien cordialement
Achraf RAFI Stage de fin d'étude : Ingénieur Systèmes à Code42 de Nantes. Etudiant en Master2 à l'ISTIC de Rennes 1 Ingénierie Systèmes , Réseaux, Sécurité & Cloud Computing . Téléphone : +33681422169 e-mail : rafiachraf91@gmail.com web : http://www.doyoubuzz.com/achraf-rafi
2015-07-22 19:46 GMT+02:00 Justin Findlay notifications@github.com:
You also need
gitfs_remotes:
- git://bitbucket.com/mybitbucket.git
— Reply to this email directly or view it on GitHub https://github.com/saltstack/salt/issues/25490#issuecomment-123804994.
Did you restart the salt-master after changing the master config?
yes, I rebooted master and minion, he installed just the party base, no grains :( attached configuration for master.conf and file grains and top
_PS: installation of all apps its work in locally party base and grains, but when a push all my states in bitbucket just party base it's work, _not the other grains.
base: 'os:debian':
Thanks you very much
Bien cordialement
Achraf RAFI Stage de fin d'étude : Ingénieur Systèmes à Code42 de Nantes. Etudiant en Master2 à l'ISTIC de Rennes 1 Ingénierie Systèmes , Réseaux, Sécurité & Cloud Computing . Téléphone : +33681422169 e-mail : rafiachraf91@gmail.com web : http://www.doyoubuzz.com/achraf-rafi
2015-07-23 17:29 GMT+02:00 Justin Findlay notifications@github.com:
Did you restart the salt-master after changing the master config?
— Reply to this email directly or view it on GitHub https://github.com/saltstack/salt/issues/25490#issuecomment-124140389.
roles:
fileserver_backend:
fileserver_limit_traversal: false gather_job_timeout: 5 gitfs_base: master gitfs_env_blacklist: [] gitfs_env_whitelist: [] gitfs_insecure_auth: false gitfs_mountpoint: '' gitfs_passphrase: '' gitfs_password: '' gitfs_privkey: '' gitfs_pubkey: '' gitfs_remotes:
maintenance_floscript: /usr/lib/python2.7/dist-packages/salt/daemons/flo/maint.flo master_floscript: /usr/lib/python2.7/dist-packages/salt/daemons/flo/master.flo master_job_cache: local_cache master_pubkey_signature: master_pubkey_signature master_roots: base:
reactor_worker_hwm: 10000 reactor_worker_threads: 10 renderer: yaml_jinja rep_hwm: 50000 rest_cherrypy: disable_ssl: true host: 127.0.0.1 port: 8000 ret_port: '4506' root_dir: / rotate_aes_key: true runner_dirs: [] search: '' search_index_interval: 3600 serial: msgpack show_jid: false show_timeout: false sign_pub_messages: false sock_dir: /var/run/salt/master sqlite_queue_dir: /var/cache/salt/master/queues ssh_passwd: '' ssh_port: '22' ssh_sudo: false ssh_timeout: 60 ssh_user: root state_aggregate: false state_auto_order: true state_events: false state_output: full state_top: top.sls state_verbose: true svnfs_branches: branches svnfs_env_blacklist: [] svnfs_env_whitelist: [] svnfs_mountpoint: '' svnfs_remotes: [] svnfs_root: '' svnfs_tags: tags svnfs_trunk: trunk syndic_event_forward_timeout: 0.5 syndic_jid_forward_cache_hwm: 100 syndic_master: '' syndic_max_event_process_time: 0.5 syndic_wait: 5
templates: List VMWare Images: args: {} description: Liste des modeles expr_form: glob fun: cloud.list_images tgt: Salt-Master Versions of Salt on Minion: args: {} description: Remonte les informations de versions des minions expr_form: glob fun: test.version tgt: '*' timeout: 5 token_expire: 43200 transport: zeromq user: root verify_env: true win_gitrepos:
base: 'os:debian':
webserver-tuning: 'roles:webserver-tuning':
webserver-lamp: 'roles:webserver-lamp':
@HabibaAmina, I am starting to get confused. Is it possible for you to post the following items from the nonworking (bitbucket) scenario, or link to a repository containing the same files:
Hello, sorry for the delay, here is the repo it there's configuration https://github.com/HabibaAmina/saltstack
All state for enviroment base + webserver-tuning + webserver-lamp declared in top.sls it's work 100% when my state in local ( server Master ) , but just i push state in github, doesn't work highstate env=webserver-tuning and webserver-lamp, but env=base it's work.
when I run the command salt "Test" state.highstate
with the above configuration gives this error:
No matching sls found for 'linux.states.webserver_linux' in env 'webserver-tuning'
and same for webserver-lamp
Thanks you.
@jfindlay Just wanted to make sure you saw this reply. Thanks.
@HabibaAmina, I'm sorry I haven't looked at this yet, but I will have some time tomorrow.
Ok @jfindlay Thanks you very much, for your time.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Hello,
I allow myself to write to you, due to an error when running the highstate.
My master and linked to bitbucket, there's master file in the tree below:
Master
Grains:
the top:
salt "Test" state.highstate
with the above configuration gives this error:I do not see it or there's the problem :(
Thank you for your return.