213 questions
1
vote
0
answers
68
views
configuring vagrant vm with ansible through WSL - Failed to connect to the host via ssh
i am having hard time with configuring vargrant vm with ansible, my host machine is windows 11 so i use WSL. (something its working and something i get "Failed to connect to the host via ssh"...
0
votes
1
answer
229
views
Using Vagrant provisioning for Shell Scripts
I've been trying to automate some configuration changes using Vagrant provisioning and shell scripts but unfortunately when I run vagrant up, my shell script will not run as expected. I've tested ...
0
votes
2
answers
129
views
Cypress is unable to find Vagrant provided server in Github Actions
Relevant link: https://github.com/freeipa/freeipa-webui/pull/186
I am trying to run cypress tests on ipa server installed in Vagrant. I output the Vagrant's IP after the installation to /etc/hosts, ...
1
vote
0
answers
879
views
Error: [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
windows 11
Vagrant 2.4.0
I was using multiple vagrants using single file This is the code of my vagrant file
Vagrant.configure("2") do |config|
config.hostmanager.enabled = true
config....
1
vote
1
answer
56
views
Create an alias in Vagrant shell provision
I can't figure out why my alias definition within the Vagrantfile shell provisioning script is not working.
This is (a part of) my Vagrantfile:
config.vm.provision "shell", inline: <<-...
0
votes
1
answer
401
views
Bash replacing text with sed - not recognized string
I'm writing a bash script to provision my server using vagrant.
my provision script is an external bash script.
Currently i'm trying to set the banner inside my ssh_config file but it doesn't seem to ...
0
votes
1
answer
180
views
Vagrantfile provision script credentials
Banging my head of a brick wall with this and have tried multiple methods without success so far. Hoping the Vagrant gurus out there can assist. I am trying to find a method of successfully removing ...
-3
votes
1
answer
727
views
Unable to run locally a pre-existing WP Trellis project on a new laptop
I am a pretty much a newbie using Trellis and I am stuck with an issue which might be silly but it’s blocking me; I have asked on the Trellis Roots' forum but I had no answer yet so I though I could ...
0
votes
0
answers
131
views
Vagrant provisioning script installs software (Pyenv) which requires shell restart
I am using Vagrant to spin up an Ubuntu box and run a shell script which configures the VM to use Pyenv. The Pyenv docs recommend restarting the shell after installation & configuration.
Having ...
0
votes
0
answers
168
views
Troubleshooting access to Flask app in Vagrant guest
I have a toy Flask app:
from flask import Flask
app = Flask(__name__)
@app.route("/home")
def home():
return "<h1>Home...</h1>"
@app.route("/health")
...
2
votes
1
answer
762
views
Vagrant: how to have shell scripts run prior to ansible provisioning?
We are currently running into an issue, with Vagrant, where certain CLI commands need to be run before Ansible provisionning:
The following SSH command responded with a non-zero exit status.
Vagrant ...
0
votes
1
answer
109
views
How to acees the exact total memory from vagrant VM
Ex : here I am able to see the base memory in vagrant machine 11800
Is there any Linux or any other
command to extract this memory value it should retrive 11800
1
vote
0
answers
298
views
Consul health checks not working in docker swarm
I have setup docker swarm with one manager and two worker nodes. Consul server is running on separate node (installed on host not in docker). Nodes are reachable from consul but service health checks ...
0
votes
0
answers
791
views
Vagrant boxes gives SSH error when trying to connect
I'm trying to create 3 ubuntu vagrant boxes: machine1,machine2,machine3.
machine3 should run an ansible playbook which installs something on machine1 and machine2.
However, keep getting an error when ...
1
vote
0
answers
218
views
Vagrantfile with docker provider portfoward error
I want to set up an environment with Vagrant. I defined 2 mysql in Vagrantfile, one for development, and one for integration tests. To differentiate these 2 instance I want to expose different ports.
#...