FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


languages:java:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
languages:java:index.html [2018/03/09 00:59]
kurihara created
languages:java:index.html [2019/02/11 00:48] (current)
kurihara
Line 17: Line 17:
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-$ fab  -H $H auth.pro  java.install_yum+$ fab  -H $H   java.install_yum
 </sxh> </sxh>
  
Line 34: Line 34:
 ===== java.py ===== ===== java.py =====
  
-$FHHOME/fabfile/php.py+$FHHOME/fabfile/java.py
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 42: Line 42:
  
 FHHOME=os.environ["FHHOME"] FHHOME=os.environ["FHHOME"]
- 
-#---------------------------------------------------------------------- 
-# Check java 
-#---------------------------------------------------------------------- 
-# php.check_php_rpm 
-@task 
-def check_php_rpm(): 
-    '''rpm -q php''' 
-    run("rpm -q php") 
-    run("php --version") 
  
  
Line 72: Line 62:
     """ java.add_etc_profile:/usr/java/jdk1.8.0_74"""     """ java.add_etc_profile:/usr/java/jdk1.8.0_74"""
     # Backup     # Backup
-    sudo("cp -p /etc/pfofile /etc/pfofile.`date -d '1day ago' +%Y%m%d`")+    sudo("cp -p /etc/profile /etc/profile.`date -d '1day ago' +%Y%m%d`")
     # Add /etc/profile     # Add /etc/profile
     sudo('echo "" >> /etc/profile')     sudo('echo "" >> /etc/profile')
Line 83: Line 73:
 </sxh> </sxh>
  
- 
- 
-\\ 
-===== PHP Configuration ===== 
  
 \\ \\


languages/java/index.html.1520524778.txt.gz ยท Last modified: 2018/03/09 00:59 by kurihara