Coder Social home page Coder Social logo

Comments (2)

x-malet avatar x-malet commented on June 11, 2024 1

The fix was not really obvious...I had to: 0

  • remove the entire project
  • clone it again
  • change the hosts.yaml file to get a good ip addresses
    • (note that they are 2 ip addresses to change (the first in the ip_range, the second is the ip param form the lb part. Be sure they are the sames)
    • Remembre to change the ip addresse in the docker command to!

and.....that's it! vagrant up worked

EDIT : Just to be sure, I tried this solution before (i.e - change the hosts.yamlfile to get a good ip addresses ) without removing the project before and it didn't worked...Don't know why because it recreate the project anyway.

from vagrant-k3s-ha-cluster.

medmouine avatar medmouine commented on June 11, 2024

This is most likely a compatibility issue between standard Shellscript and the sh runner you are using.

The provision.sh script runs on your local host machine and the error is happening during the parsing of the arguments passed to the script.

Can you try some alternations of this chunk of code in provision.sh

while [ $# -gt 0 ]; do
   if [[ $1 == *"--"* ]]; then
        v="${1/--/}"
        declare $v="$2"
   fi
  shift
done

For example, try alternating different [[ ]] combinations.

You can also look up how to parse arguments for you specific OS in shell script, it should be standard for all unix distros, but I can't be sure as I only tested on macOS Catalina 10.15.7.

Please post your solution if you are able to resolve the issue.

from vagrant-k3s-ha-cluster.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.