Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is it possible to execute a puppet in a remote server using SSH?
I don't want to have to install ruby on the remote server.
To my knowledge, only Puppet can interpret Puppet files. I think it is easier to install Puppet's dependencies (including Ruby) than finding/developing a Puppet replacement.
Puppet (and facter) needs to be able to inspect the filesystem, process tables and other kernel tables (to mention just a few things) of the remote server. To to this, it has to be executed on the remote server. ssh does not offer a way to run a command on host A in such a way that it executes on host B with access to host B's resources; it does offer a way to execute a program installed on host B from host A, but that is not what you want.
Puppet comes with an overhead (the space required to install it and its dependencies, plus the memory and CPU time that it consumes); if you don't like the overhead, don't use Puppet.
Note: if it were possible to do what you want, then you'd have saved a small amount of space on host B but would have three new problems:
Significant increase of the load on your puppetmaster, if it has do to all the work.
Still a lot of work on the remote server, as it provides access to the resources
Large increase in network traffic.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
Overview:
I have an Ansible node that has a number of files on it. I would like to copy those files over to a remote Network File Share (NFS). I'm trying to limit the number of Windows computers we WinRM into, and so would prefer (if possible) not to need to WinRM to a Windows machine in order to copy the file. Ideally, I would like to be able to copy the file directly from the RHEL Ansible node to the Windows NFS. I say "Windows NFS" but really it is a NAS protected using Active Directory authentication.
Questions:
Is it possible to use Ansible to copy from a Linux machine to an NFS (i.e. Windows, Nas, etc.)?
Does it matter that the NFS is protected with Active Directory? Must I use some other credentials, or can I use an AD-based username/password?
The best way to tackle this would be to mount the Windows Share to the Ansible node. For our use case, a permanent mount would be best. But, you could also use Ansible to temporarily mount the share.
More details can be found here...
How do you provide domain credentials to ansible's mount module?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Azure VM running Win server 2012 r2 datacenter. I have installed Active Directory Domain Services Role onto that VM. Now i want to Clone it with the same ADDS settings to create new VMs.
I tried Sysprep, but later i found out that sysprep doesnt support ADDS.
Is there any possible way ?
Thank You.
You can't. You have to install and promote each domain controller in your forest.
However, using powershell + Azure Custom Script VM Extension you can automate the process.
Custom Script extension for Windows allows you to run PowerShell
scripts on a remote VM, without logging into it. The scripts can be
run after provisioning the VM or any time during the lifecycle of the
VM without requiring to open any additional ports on the VM. The most
common use case for Custom Script Extension include running,
installing, and configuring additional software on the VM after it's
provisioned.
More info:
Custom Script extension for Windows virtual machines
Step-by-Step: Auto-join a VM to ADDS in the Azure Cloud
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to install project management application called Redmine on Windows Azure Virtual Machine and access it from internet. Redmine is based on Ruby and is using a database so I also had to install them too. Actually I managed to install everything and when I connect to virtual machine by Remote Desktop I can access Redmine there by typing localhost/redmine in browser. The question is what should I do now to access it from outside? (for example home pc or anybody in internet). My virtual machine has got an address like myapp.cloudapp.com but there is no way I can access redmine by typing myapp.cloudapp.com/redmine or something like this.
Well, I can't exactly speak for Azure as I haven't used it, but there should be a way to forward port 80 through to your VM. You should also make sure IIS is setup to listen on 0.0.0.0:80 and not 127.0.0.1:80
Edit: Usually port forwarding is setup in the control panel for a cloud provider, so I would start by checking whatever interface Azure gives you to configure your VM.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am a newbie in the area of Linux KVM virtualization. Can anybody help how to connect to my KVM hypervisor from a remote Linux machine without using LibVirt or any other third party library. I have searched for this but all the results that i got was using libvirt or commands related to it. I am not allowed to use any third party library and need to take the backup of my KVM from remote machine.
Can you also tell me why a deamon is required in KVM when it is not required in VMware ESXI?
If you just want to connect, there is no need of libvirt or anything else.
You could just use vnc viewer like this: vncviewer IP:PORT
$ vncviewer 192.168.1.123:0 #if you using display number
$ vncviewer 192.168.1.123::5900 #if u using port number
i didn't quite get what you are meaning with "take the backup of my KVM" ?
Of course a daemon is required by VMware ESXI to run. Use can use ps to verify that.
use kvm command with option -vnc 0.0.0.0:0 and connect with command shown by Evaggelos Balaskas
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
What toolkits are out there that will allow me to do the following things from a windows 2008 server to a linux server? In other words I have a windows 2008 server that performs admin tasks using powershell against other windows servers on the domain using WMI and UNC shares. Soon I will be required to do the same automated tasks on linux based servers. I want to have a single windows based server that can perform these admin tasks against both linux and windows using one technology, or two if I must, but definitely only want to have to maintain a single windows based server for this.
Access remote hard drive shares e.g. Currently use c$, d$, ... hidden share on windows based systems
Execute commands remotely. e.g. Currently use WMI remote execution on windows based systems
Start, pause, stop Tomcat/Apache web servers.
Instead of installing cygwin and all its dependencies, you can use just PLink.exe with this script : Invoke-SSH (http://www.zerrouki.com/invoke-ssh/)
Take a look at Cfengine. It works nicely for administering Unix hosts, and also claims to support Windows. You might need some basic Cygwin tools installed, however.