Add MySQL patch for bug in Salt version 3000
This commit is contained in:
		
							parent
							
								
									288acee379
								
							
						
					
					
						commit
						7e246ec1a0
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -3,9 +3,12 @@ | ||||||
| {% set mysql_admin_user = salt['pillar.get']('gnuviechadmin:{}:mysql_admin_user'.format(gvaappname), 'gvamysql') %} | {% set mysql_admin_user = salt['pillar.get']('gnuviechadmin:{}:mysql_admin_user'.format(gvaappname), 'gvamysql') %} | ||||||
| {% set mysql_admin_password = salt['pillar.get']('gnuviechadmin:{}:mysql_admin_password'.format(gvaappname)) %} | {% set mysql_admin_password = salt['pillar.get']('gnuviechadmin:{}:mysql_admin_password'.format(gvaappname)) %} | ||||||
| {% from 'gnuviechadmin/gvaapp_macros.sls' import create_celery_worker with context %} | {% from 'gnuviechadmin/gvaapp_macros.sls' import create_celery_worker with context %} | ||||||
|  | # FIXME: this is broken due to https://github.com/saltstack/salt/issues/56124 | ||||||
|  | # patches.mysql is needed to be run on the minion before usage with Salt 3000 | ||||||
| include: | include: | ||||||
| - python.pipenv | - python.pipenv | ||||||
| - python.virtualenv | - python.virtualenv | ||||||
|  | - patches.mysql | ||||||
| - mariadb-server | - mariadb-server | ||||||
| 
 | 
 | ||||||
| {{ create_celery_worker(gvaappname, purpose) }} | {{ create_celery_worker(gvaappname, purpose) }} | ||||||
|  | @ -20,8 +23,6 @@ include: | ||||||
| python3-mysqldb: | python3-mysqldb: | ||||||
|   pkg.installed |   pkg.installed | ||||||
| 
 | 
 | ||||||
| # FIXME: this is broken due to https://github.com/saltstack/salt/issues/56124 |  | ||||||
| # require salt-call state.sls patch.mysql to be run on the minion before usage |  | ||||||
| gvamysql-mysql-user: | gvamysql-mysql-user: | ||||||
|   mysql_user.present: |   mysql_user.present: | ||||||
|     - name: {{ mysql_admin_user }} |     - name: {{ mysql_admin_user }} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue