punchplatform / punchbox

the punchbox tool to deploy servers, kubernetes or punch
Apache License 2.0
4 stars 2 forks source link

pp-14 add install dir and data dir user configurations #18

Closed KaioKei closed 4 years ago

KaioKei commented 4 years ago

Pull Request

Issue

Testing

  1. Compile a v6.0.x Punchplatform 2 . Edit the following configurations in configurations/complete_punch_32G.json for test purposes :
{
    "punch": {
        "installation_directory": "/tmp/opt",
        "data_storage_directory": "/tmp
    }
}
  1. Test with zookeeper deployment

    cd $PUNCHBOX_DIR
    make clean
    make install
    bin/punchbox --config configurations/complete_punch_32G.json \
    --punch-conf /home/user/punchplatform-standalone-6.0.1-SNAPSHOT-linux/conf/ \
    --deployer $PP_PUNCH_DIR/pp-packaging/punchplatform-deployer/target/punchplatform-deployer-6.0.1-SNAPSHOT.zip \
    --generate-vagrantfile
    # mount VMs
    cd vagrant
    vagrant up
    # generate configuration
    cd ..
    punchplatform-deployer.sh -gc --templates-dir punch/platform_template/ --model punch/build/model.json
    # check configuration and deploy
    punchplatform-deployer.sh -gi
    punchplatform-deployer.sh deploy -kK --tags zookeeper
  2. Check that zookeeper's binaries are located inside /tmp/opt and the zookeeper's data are located inside /tmp

Author's checklist (You)

Before submitting merge request:

Reviewer's checklist (Reviewer)