Use Ansible to copy files to Windows NFS [closed] - windows

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?

Related

Execute puppet file in a remote server via ssh [closed]

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.

Copying a file remotely from Ubuntu to Windows 7 [closed]

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 not very familiar with command line Ubuntu (leave alone copying a file remotely) so I apologise if this question is a bit too common.
My setup is a bit unusual so I wasn't able to find much via research online.
I am working on a Win7 machine and I ssh into the Ubuntu (11.10) server via Putty. I tried the following command,
scp textFile.txt user#ipaddress:
The textFile.txt is on the Ubuntu machine and the user is my account on the Win7 machine and ipaddress is the IPv4 address of the Win machine. I even put the -4 option but everytime it keeps saying Connection timed out.
Is there any way for me to copy this file onto my machine?
Both are on the same network.
I would suggest that you get an application called WinSCP installed on your Windows server. This is free and very easy to use.
It is like an FTP application, using your Linux username and password (along with the SSH port). This way, all future copies between these OS'es will be easy.
I hope this help?
You could install samba or FTP to share files.
Using a samba share on the windows machine you could follow this guide
Using FTP you could try this
You may use filezilla. I also encountered the same problem however I found Filezilla as one of the easiest way to transfer the file. Check the image and enter the host id sftp://ipaddress.. Oops i realised that I cannot post an image until i have 10 reputation... :( hence, removing the image. but its easy. Just put the host name as suggested above.
hope this will help

Executing administration tasks on linux from windows server 2008 [closed]

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.

Mac client can't resolve Windows Home Server name [closed]

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 8 years ago.
Improve this question
I think this is more a Mac networking configuration issue than anything else, but am not sure.
I have Subversion set up on my Windows Home Server machine (similar to this: http://www.hanselman.com/blog/RunningASubversionServerOffYourWindowsHomeServer.aspx). This setup has been working for me for months, using Windows clients.
Now I'm trying to add a Mac client, and it can't resolve the network name of my WHS server. If I open a terminal window on the mac, and attempt to ping or use nslookup, I get an error that it can't find the server. On the PC side, I can ping, but nslookup doesn't resolve the name, so I'm assuming that PC's ping is resolving the name as a NetBios name.
I've found a number of articles online that explain how to set up default suffixes based on Windows domains, but the Windows Home Server doesn't establish a domain by default. (It's in workgroup mode.)
Anyone have any suggestions or pointers?
The quick and easy way to get this working would be to add an entry to your host file on the MAC. You can find the file in /etc/hosts
Edit the file and add an entry at the end as follows:
<ip address> <hostname>
example:
69.59.196.211 www.stackoverflow.com
That is the way that I would go, and they mention using the host file in the article you posted. More info on editing the hostfile of different machines can be found here:
http://practice.chatserve.com/hosts.html

Opening a remote machine's Windows C drive [closed]

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 13 years ago.
Improve this question
I'm trying to locally mount a machine's C drive that is on my LAN. I need to able to browse the contents of the other machine when tracing through code. I once saw a sys admin do some crazy windows incantation from the cmd prompt. Something like
$remote_machine/local_access/C
Is anyone familiar with how this is done?
If it's not the Home edition of XP, you can use \\servername\c$
Mark Brackett's comment:
Note that you need to be an
Administrator on the local machine, as
the share permissions are locked down
If you need a drive letter (some applications don't like UNC style paths that start with a machine-name) you can "map a drive" to a UNC path. Right-click on "My Computer" and select Map Network Drive... or use this command line:
NET USE z: \server\c$\folder1\folder2
NET USE y: \server\d$
Note that you can map drive-to-drive or drill down and map to sub-folder.
By default, Windows makes the root of each drive available (provided you've got Administrator privileges) as (e.g.) \\server\c$. These are known as Administrative Shares.

Resources