mirror of
				https://github.com/saltstack-formulas/cron-formula.git
				synced 2025-11-04 06:03:42 +01:00 
			
		
		
		
	Merge pull request #2 from kossmac/master
allow special characters in time parameters
This commit is contained in:
		
						commit
						0f1c9cf081
					
				@ -13,19 +13,19 @@ cron.{{ task }}:
 | 
				
			|||||||
        - user: {{ task_options.user|default('root') }}
 | 
					        - user: {{ task_options.user|default('root') }}
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        {% if 'minute' in task_options %}
 | 
					        {% if 'minute' in task_options %}
 | 
				
			||||||
        - minute: {{ task_options.minute }}
 | 
					        - minute: '{{ task_options.minute }}'
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        {% if 'hour' in task_options %}
 | 
					        {% if 'hour' in task_options %}
 | 
				
			||||||
        - hour: {{ task_options.hour }}
 | 
					        - hour: '{{ task_options.hour }}'
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        {% if 'daymonth' in task_options %}
 | 
					        {% if 'daymonth' in task_options %}
 | 
				
			||||||
        - daymonth: {{ task_options.daymonth }}
 | 
					        - daymonth: '{{ task_options.daymonth }}'
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        {% if 'month' in task_options %}
 | 
					        {% if 'month' in task_options %}
 | 
				
			||||||
        - month: {{ task_options.month }}
 | 
					        - month: '{{ task_options.month }}'
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        {% if 'dayweek' in task_options %}
 | 
					        {% if 'dayweek' in task_options %}
 | 
				
			||||||
        - dayweek: {{ task_options.dayweek }}
 | 
					        - dayweek: '{{ task_options.dayweek }}'
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        {% if 'commented' in task_options and task_options.commented %}
 | 
					        {% if 'commented' in task_options and task_options.commented %}
 | 
				
			||||||
        - commented: True
 | 
					        - commented: True
 | 
				
			||||||
 | 
				
			|||||||
@ -25,3 +25,9 @@ cron:
 | 
				
			|||||||
            user: 'root'
 | 
					            user: 'root'
 | 
				
			||||||
            special: '@hourly'
 | 
					            special: '@hourly'
 | 
				
			||||||
            comment: 'comment3'
 | 
					            comment: 'comment3'
 | 
				
			||||||
 | 
					        task4:
 | 
				
			||||||
 | 
					            type: 'present' # run every 5 minutes
 | 
				
			||||||
 | 
					            user: 'root'
 | 
				
			||||||
 | 
					            minute: '*/5'
 | 
				
			||||||
 | 
					            hour: '*'
 | 
				
			||||||
 | 
					            comment: 'comment4'
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user