Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38093

need clarification about the "up" and "provision" steps

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • vagrant-plugin
    • Jenkins 2.17.
      Vagrant plugin 1.0.2
      Debian Jessie 64 bits

      Hello,

      when I run the "Boot up Vagrant VM" step, it also provision the vagrant with what is defined in the Vagrantfile.
      The step "Provision a Vagrant VM" allows to define a provisioner but not the associated options (e.g. for Salt "minion_id" https://www.vagrantup.com/docs/provisioning/salt.html).
      So it means that needed options must be in the Vagrantfile.

      I found the actual behaviour confusing or not clear enough: if I define provisioning in Vagrantfile it gets launched at boot, so I can't have an additional step between boot and provision.
      If the provisioning is not defined in Vagrantfile, it can't be done because the form only have one field for the name not the options.

      I can imagine a boot step with no provisioning (with --no-provision option) so that provisioning is only done if a specific provision step is defined.

      Thanks for your answer. I hope it don't misunderstand the way this plugin can/must be used.

          [JENKINS-38093] need clarification about the "up" and "provision" steps

          Michal Vala added a comment -

          added don't provision checkbox. PR https://github.com/jenkinsci/vagrant-plugin/pull/7

          Michal Vala added a comment - added don't provision checkbox. PR https://github.com/jenkinsci/vagrant-plugin/pull/7

          Code changed in jenkins
          User: Michal Vala
          Path:
          src/main/java/org/jenkinsci/plugins/vagrant/VagrantProvisionCommand.java
          src/main/java/org/jenkinsci/plugins/vagrant/VagrantUpCommand.java
          src/main/resources/org/jenkinsci/plugins/vagrant/VagrantUpCommand/config.jelly
          src/main/resources/org/jenkinsci/plugins/vagrant/VagrantUpCommand/help-dontProvision.html
          http://jenkins-ci.org/commit/vagrant-plugin/7366b2ea224b368d5813cb57b2b82d5f7897d2a6
          Log:
          JENKINS-38093 - Don't provision checkbox (#7)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Vala Path: src/main/java/org/jenkinsci/plugins/vagrant/VagrantProvisionCommand.java src/main/java/org/jenkinsci/plugins/vagrant/VagrantUpCommand.java src/main/resources/org/jenkinsci/plugins/vagrant/VagrantUpCommand/config.jelly src/main/resources/org/jenkinsci/plugins/vagrant/VagrantUpCommand/help-dontProvision.html http://jenkins-ci.org/commit/vagrant-plugin/7366b2ea224b368d5813cb57b2b82d5f7897d2a6 Log: JENKINS-38093 - Don't provision checkbox (#7) JENKINS-38093 - added Dont Provision checkbox to vagrant up

          Eric Veiras added a comment -

          Great, thanks.

          Eric Veiras added a comment - Great, thanks.

            sparko Michal Vala
            daks Eric Veiras
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: