type - Set the App Type

A2 supports following App Types:
        
        box: container to keep similar type of apps together
        cmd: to run a process on managed node
        get: to get a file from the managed node
        put: to send a file to the managed node
        
        

Examples

Simple App with 'box' and 'cmd':
        
        ---
        - name: 'WorkingDay_FourTime_DailyBox'
          type: 'box'
          box: 'none'
          user: 'root'
          node: 'none'
          cmd: 'none'
          date: '1,2,3,4,5,8,9,10,11,12,15,16,17,18,19,22,23,24,25,26,29,30,31'
          times: '06:05,12:05,18:05,00:05'
          days: 'mon, tue,wed,thu,fri'
          months: 'all'
          condition: 'none'
          
        - name: 'WorkingDay_FourTime_DailyApp'
          type: 'cmd'
          box: 'WorkingDay_FourTime_DailyBox'
          user: 'root'
          node: 'atgen001'
          cmd: '/root/a2sample/sampleprocess.sh'
          date: 'all'
          times: 'all'
          days: 'all'
          months: 'all'
          condition: 'none'
        
        


To get(receive) a file from managed node:
        
        ---
        - name: 'GetSampleJob'
          type: 'get'
          box: 'none'
          user: 'Administrator'
          node: 'win12'
          cmd: 'C:\\test_win12.txt /tmp/test_win12'
          date: 'all'
          times: '03,08,13,18,23,28,33,38,43,48,53,58'
          days: 'all'
          months: 'all'
          condition: 'none'
        
        


To put(send) a file to managed node:
        
        ---
        - name: 'PutSampleLinuxJob'
          type: 'put'
          box: 'none'
          user: 'root'
          node: 'atgen001'
          cmd: '/tmp/test_atgen003 /tmp/test_atgen003'
          date: 'all'
          times: '03,08,13,18,23,28,33,38,43,48,53,58'
          days: 'all'
          months: 'all'
          condition: 'none'
        
        

A2 on GitHub

You may also wish to follow the GitHub project if you have a GitHub account. This is also where we keep the issue tracker for sharing bugs and feature ideas.