美文网首页
CentOS7 minimal ovirt ovirt-engi

CentOS7 minimal ovirt ovirt-engi

作者: 余带盐 | 来源:发表于2018-06-08 11:08 被阅读0次
  • clone aaa (添加用户(登录)密码的模块)

cd /home/coretek/git/
git clone git clone https://github.com/oVirt/ovirt-engine-extension-aaa-jdbc.git

  • 添加lib

cd /home/coretek/git/ovirt-engine-extension-aaa-jdbc/
mkdir lib
注:从一个同版本的ovirt运行环境的/usr/share/java目录下复制slf4j-jdk14.jar slf4j-api.jar postgresql-jdbc.jar ovirt-engine-extensions-api.jar jackson-mapper-asl.jar jackson-core-asl.jar commons-lang.jar commons-codec.jar包到 lib目录下,如图

image.png
  • 编译

方法1:
修改编译出来的目录:
vi Makefile

PREFIX=/home/coretek/ovirt-engine

编译:make clean install
查看:在/home/coretek/ovirt-engine/share目录下看到有ovirt-engine-extension-aaa-jdbc的包

image.png
方法2:
make clean install PREFIX="$HOME/ovirt-engine"
  • engine-setup

注:engine-setup之后可以看到数据库中有aaa_jdbc的模式

image.png
  • 构建出rpm包
  1. 打包:
    make dist
  2. 修改ovirt-engine-extensions-api.jar包路径
    vi /home/coretek/rpmbuild/BUILD/ovirt-engine-extension-aaa-jdbc-1.1.8/build.properties
...
jar.ovirt-engine-extensions-api=/home/coretek/git/ovirt-engine-extension-aaa-jdbc/lib/ovirt-engine-extensions-api.jar
...
  1. 安装包
    yum localinstall -y ovirt-engine-extensions-api-impl-4.2.3.5-1.el7.centos.noarch.rpm jackson-core-2.6.3-1.el7.noarch.rpm jackson-1.9.4-7.el7.noarch.rpm postgresql-jdbc-9.2.1002-5.el7.noarch.rpm
    注:ovirt-engine-extensions-api-impl-4.2.3.5-1.el7.centos.noarch.rpmovirt-engine编译出来的包,路径是/home/coretek/rpmbuild/RPMS/ovirt-engine-pkg/ovirt-engine-extensions-api-impl-4.2.3.5-1.el7.centos.noarch.rpm
  2. 构建rpm:
    rpmbuild -tb ovirt-engine-extension-aaa-jdbc-1.1.8_master.tar.gz

相关文章

网友评论

      本文标题:CentOS7 minimal ovirt ovirt-engi

      本文链接:https://www.haomeiwen.com/subject/svwosftx.html