![]() ![]() The Squidman Empire (イカマン帝国, ikaman teikoku) is one of the three great Squidman nations of The Continent formed after squidmen became recognized as the fourth incarnation of the Protagonist Race roughly 50,000 years after the LP Era.īuilt from the ruins of Lang Bau, the capital of the Helman Republic, with the assistance of the legendary black-skinned squidman Kalar Squnty, the Squidman Empire controls the northern corner of the Continent. ![]() Lang Bau, the capital city of the Squidman Empire. directory? (repo )Ĭontent = File.Spoiler Alert: This page contains minor spoilers from the events of the games.ĭon't worry too much about them but take it into account. Next if repo = '.' or repo = '.' or File. info ": Disable mirrorlist in repositories" Ruby_block "disable yum mirrorlist in repositories" doĬhef::Log. # Improve the cache hit rate for a proxy by disabling the mirrorlist in repositories search_file_replace_line ( /^enabled= /, 'enabled=0' ) Ruby_block "disable yum fastestmirror plugin" doĬhef::Log. # Improve the cache hit rate for a proxy by disabling the Yum fastestmirror plugin This way rpm packages will always be downloaded from the same URL instead of different mirrors each time.Īn example on how to to this in a Chef recipe: Also use the baseurl in repositories instead of the mirrorlist. To get quicker and more cache hits in the proxy, it’s important to disable for example in Centos, the Yum fastestmirror plugin. If Vagrant.has_plugin?("vagrant-proxyconf")Ĭ_proxy = "localhost,127.0.0.1."ĭisable Yum mirrors (optional, but recommended!) Test Kitchen or a Vagrantfile in your project will extend the Vagrantfile in your home directory. Tell Vagrant with a Vagrantfile in your home directory to use the proxy server. In most setups the IP will just be 10.0.2.2. Install the vagrant plugin “ vagrant-proxyconf” for that.įind the gateway IP on the guest VM which represents the IP to the host machine. Now the proxy is setup, we need to tell Vagrant to route its traffic through the proxy. 0 20 % 4320 Install and configure vagrant-proxyconf Refresh_pattern -i ( /cgi-bin /|\? ) 0 0 % 0 # This is illegal according the RFC, but works for our specific purposes. # override-expire option lets us override the specified expiry time. # server when someone does a conditional get, to be cautious. # But basically, refresh-ims makes squid check with the backend The refresh-ims and override-expire options are # The rpm, deb, iso and tar.gz files are cached for 129600 minutes, # hierarchy stop list (squid-recommended) # specify which hosts have direct access (bypassing the parent proxy) ![]() # don't list any other access settings below this point # after allowed hosts, deny all other access to this proxy # protect web apps running on the proxy host from external users # Deny CONNECT to other than secure SSL ports # Only allow cachemgr access from localhost # the hostname squid displays in error messagesĬache_access_log stdio: /Users /pieter /Library /Logs /squid /squid-access.logĬache_store_log stdio: /Users /pieter /Library /Logs /squid /squid-store.logĬache_log /Users /pieter /Library /Logs /squid /squid-cache.logĪcl Safe_ports port 1025- 65535 # unregistered ports # WARNING - do not edit this template unless you know what you are doingĬache_dir ufs /Users /pieter /Library /Caches /squid 16384 16 256Ĭoredump_dir /Users /pieter /Library /Caches /squid My complete configuration (generated from default SquidMan template with some additional refresh_pattern lines): I set a 16G cache size, 256M maximum object size and a 90 days cache period for rpm and deb files. On Mac OS X the Squid proxy is very easy to install and configure with SquidMan. Special rules can be defined to only cache. Install and configure Squidīut no worries, we can fix that with the use of the wonderful vagrant-proxyconf plugin and a locally installed caching proxy like Squid! This proxy will run locally on your host machine and can for example be used for all connections from Vagrant boxes. If your internet connection is not blazing fast, this will certainly slow down your work tempo a lot. For every new build, all of the yum or debian packages must be downloaded and installed again. In this process, virtual machines are often destroyed and build from the ground up. But also converging, testing and destroying virtual machines with Test Kitchen that uses Vagrant. If you do a lot of Chef development, you are creating cookbooks with recipes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |